mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Show filters directive on all visualizations.
This commit is contained in:
parent
19209d16aa
commit
2b5291900d
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user