Commit 4377e95c by Torkel Ödegaard

fix(graph legend): minor correction to last commit

parent f4feb380
...@@ -101,7 +101,12 @@ function (angular, _, $) { ...@@ -101,7 +101,12 @@ function (angular, _, $) {
} }
function render() { function render() {
console.log('render legend'); if (!ctrl.panel.legend.show) {
elem.empty();
firstRender = true;
return;
}
if (firstRender) { if (firstRender) {
elem.append($container); elem.append($container);
$container.on('click', '.graph-legend-icon', openColorSelector); $container.on('click', '.graph-legend-icon', openColorSelector);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment