Commit 7687150a by Rashid Khan

removed obsolete settings from dashcontrol editor

parent 9f3f7a4f
......@@ -28,9 +28,6 @@
<div class="span3" ng-show="panel.load.elasticsearch">
<label class="small">ES list size</label><input class="input-mini" type="number" ng-model="panel.elasticsearch_size">
</div>
<div class="span3" ng-show="panel.load.elasticsearch">
<label class="small">ES store index</label><input class="input-small" type="text" ng-model="panel.elasticsearch_saveto">
</div>
</div>
<h5>Sharing</h5>
<div class="row-fluid">
......@@ -41,11 +38,4 @@
<label class="small">Shared Link TTL (examples: 1m,1d,1w,30d)</label><input class="input-small" type="text" ng-model="panel.temp_ttl">
</div>
</div>
<h5>Other Settings</h5>
<div class="row-fluid">
<div class="span3" >
<label class="small"> Remove this Dashboard Control from saved copies </label><input type="checkbox" ng-model="panel.hide_control" ng-checked="panel.hide_control">
</div>
</div>
</div>
\ No newline at end of file
......@@ -17,7 +17,6 @@
** local :: Allow loading of dashboards from Elasticsearch
* hide_control :: Upon save, hide this panel
* elasticsearch_size :: show this many dashboards under the ES section in the load drop down
* elasticsearch_saveto :: Special kibana index to save to
* temp :: Allow saving of temp dashboards
* temp_ttl :: How long should temp dashboards persist
......@@ -48,7 +47,6 @@ angular.module('kibana.dashcontrol', [])
},
hide_control: false,
elasticsearch_size: 20,
elasticsearch_saveto: $scope.config.kibana_index,
temp: true,
temp_ttl: '30d'
}
......@@ -93,7 +91,6 @@ angular.module('kibana.dashcontrol', [])
if(type === 'temp') {
$scope.share = dashboard.share_link(dashboard.current.title,'temp',result._id)
}
console.log(result)
} else {
$scope.alert('Save failed','Dashboard could not be saved to Elasticsearch','error',5000)
}
......@@ -133,7 +130,6 @@ angular.module('kibana.dashcontrol', [])
$scope.save_gist = function() {
dashboard.save_gist($scope.gist.title).then(
function(link) {
console.log(link)
if(!_.isUndefined(link)) {
$scope.gist.last = link;
$scope.alert('Gist saved','You will be able to access your exported dashboard file at <a href="'+link+'">'+link+'</a> in a moment','success');
......
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