Show filters directive on all visualizations.

This commit is contained in:
Arik Fraimovich 2014-03-17 20:21:39 +02:00
parent 19209d16aa
commit 2b5291900d

View File

@ -64,8 +64,11 @@
// TODO: using switch here (and in the options editor) might introduce errors and bad
// performance wise. It's better to eventually show the correct template based on the
// visualization type and not make the browser render all of them.
template: Visualization.renderVisualizationsTemplate,
replace: false
template: '<filters></filters>\n' + Visualization.renderVisualizationsTemplate,
replace: false,
link: function(scope) {
scope.filters = scope.queryResult.getFilters();
}
}
};
@ -148,6 +151,8 @@
}
};
angular.module('redash.visualization', [])
.provider('Visualization', VisualizationProvider)
.directive('visualizationRenderer', ['Visualization', VisualizationRenderer])