diff --git a/panels/dashcontrol/editor.html b/panels/dashcontrol/editor.html index 2cafe2e8a70..d6199f93595 100644 --- a/panels/dashcontrol/editor.html +++ b/panels/dashcontrol/editor.html @@ -25,8 +25,11 @@
-
- +
+ +
+
+
\ No newline at end of file diff --git a/panels/dashcontrol/module.js b/panels/dashcontrol/module.js index 9b1f8ef317a..3f604298972 100644 --- a/panels/dashcontrol/module.js +++ b/panels/dashcontrol/module.js @@ -18,6 +18,7 @@ angular.module('kibana.dashcontrol', []) local: true, }, elasticsearch_size: 20, + elasticsearch_saveto: 'kibana-int' } _.defaults($scope.panel,_d); @@ -61,7 +62,7 @@ angular.module('kibana.dashcontrol', []) $scope.save_elasticsearch = function() { var save = _.clone($scope.dashboards) save.title = $scope.elasticsearch.title; - var result = $scope.ejs.Document('kibana-int','dashboard',save.title).source({ + var result = $scope.ejs.Document($scope.panel.elasticsearch_saveto,'dashboard',save.title).source({ user: 'guest', group: 'guest', title: save.title, @@ -75,7 +76,7 @@ angular.module('kibana.dashcontrol', []) } $scope.delete_elasticsearch = function(dashboard) { - var result = $scope.ejs.Document('kibana-int','dashboard',dashboard._id).doDelete(); + var result = $scope.ejs.Document($scope.panel.elasticsearch_saveto,'dashboard',dashboard._id).doDelete(); result.then(function(result) { $scope.alert('Dashboard Deleted','','success',5000) $scope.elasticsearch.dashboards = _.without($scope.elasticsearch.dashboards,dashboard) @@ -84,7 +85,7 @@ angular.module('kibana.dashcontrol', []) $scope.elasticsearch_dblist = function(query) { if($scope.panel.load.elasticsearch) { - var request = $scope.ejs.Request().indices('kibana-int').types('dashboard'); + var request = $scope.ejs.Request().indices($scope.panel.elasticsearch_saveto).types('dashboard'); var results = request.query( $scope.ejs.QueryStringQuery(query || '*') ).size($scope.panel.elasticsearch_size).doSearch(); diff --git a/panels/table/module.html b/panels/table/module.html index 4340a7aa3ee..911b5aed7bc 100644 --- a/panels/table/module.html +++ b/panels/table/module.html @@ -13,6 +13,7 @@ +
No columns configured. You may want to add a fields panel, or click the edit button in the top right of this panel to add some columns