mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Remove the need to declare each visualization module in app dependencies.
This commit is contained in:
parent
9c0edfdb9d
commit
00b5aba88a
@ -6,9 +6,6 @@ angular.module('redash', [
|
||||
'redash.services',
|
||||
'redash.renderers',
|
||||
'redash.visualization',
|
||||
'redash.visualization.chart',
|
||||
'redash.visualization.cohort',
|
||||
'redash.visualization.table',
|
||||
'ui.codemirror',
|
||||
'highchart',
|
||||
'angular-growl',
|
||||
|
@ -1,5 +1,5 @@
|
||||
(function () {
|
||||
var chartVisualization = angular.module('redash.visualization.chart', []);
|
||||
var chartVisualization = angular.module('redash.visualization');
|
||||
|
||||
chartVisualization.config(['VisualizationProvider', function(VisualizationProvider) {
|
||||
var renderTemplate = '<chart-renderer options="visualization.options" query-result="queryResult"></chart-renderer>';
|
||||
|
@ -1,5 +1,5 @@
|
||||
(function () {
|
||||
var cohortVisualization = angular.module('redash.visualization.cohort', []);
|
||||
var cohortVisualization = angular.module('redash.visualization');
|
||||
|
||||
cohortVisualization.config(['VisualizationProvider', function(VisualizationProvider) {
|
||||
VisualizationProvider.registerVisualization('COHORT', 'Cohort', '<cohort-renderer options="visualization.options" query-result="queryResult"></cohort-renderer>', null);
|
||||
|
@ -1,5 +1,5 @@
|
||||
(function () {
|
||||
var tableVisualization = angular.module('redash.visualization.table', []);
|
||||
var tableVisualization = angular.module('redash.visualization');
|
||||
|
||||
tableVisualization.config(['VisualizationProvider', function(VisualizationProvider) {
|
||||
VisualizationProvider.registerVisualization('TABLE', 'Table', '<grid-renderer options="visualization.options" query-result="queryResult"></grid-renderer>', null, {}, true);
|
||||
|
Loading…
Reference in New Issue
Block a user