diff --git a/common/css/main.css b/common/css/main.css index 2d8dbbedad9..12e35ff8136 100644 --- a/common/css/main.css +++ b/common/css/main.css @@ -13,6 +13,12 @@ text-transform:capitalize; } +.editor-title small { + opacity: 0.5; + font-size: 0.7em; + font-weight: normal; +} + .spy { position:absolute; right:0px; diff --git a/js/services.js b/js/services.js index 7cf83ccfbd4..2b9c40fd37b 100644 --- a/js/services.js +++ b/js/services.js @@ -716,8 +716,7 @@ angular.module('kibana.services', []) dashboard: angular.toJson(save) }); - request = type === 'temp' ? request.ttl(ttl) : request; - + request = type === 'temp' && ttl ? request.ttl(ttl) : request; // TOFIX: Implement error handling here return request.doIndex( diff --git a/panels/dashcontrol/editor.html b/panels/dashcontrol/editor.html index 97868ee19bf..7c87e30d1d8 100644 --- a/panels/dashcontrol/editor.html +++ b/panels/dashcontrol/editor.html @@ -2,28 +2,28 @@
Allow saving to
- +
- +
- +
- +
Allow loading from
- +
- +
- +
@@ -31,11 +31,14 @@
Sharing
-
+
-
- +
+ +
+
+
\ No newline at end of file diff --git a/panels/dashcontrol/module.js b/panels/dashcontrol/module.js index 6de4c89b8f3..3604c6a442f 100644 --- a/panels/dashcontrol/module.js +++ b/panels/dashcontrol/module.js @@ -21,6 +21,7 @@ * hide_control :: Upon save, hide this panel * elasticsearch_size :: show this many dashboards under the ES section in the load drop down * temp :: Allow saving of temp dashboards + * ttl :: Enable setting ttl. * temp_ttl :: How long should temp dashboards persist */ @@ -48,6 +49,7 @@ angular.module('kibana.dashcontrol', []) hide_control: false, elasticsearch_size: 20, temp: true, + ttl_enable: true, temp_ttl: '30d' }; _.defaults($scope.panel,_d); @@ -83,7 +85,11 @@ angular.module('kibana.dashcontrol', []) }; $scope.elasticsearch_save = function(type,ttl) { - dashboard.elasticsearch_save(type,($scope.elasticsearch.title || dashboard.current.title),ttl).then( + dashboard.elasticsearch_save( + type, + ($scope.elasticsearch.title || dashboard.current.title), + ($scope.panel.ttl_enable ? ttl : false) + ).then( function(result) { if(!_.isUndefined(result._id)) { $scope.alert('Dashboard Saved','This dashboard has been saved to Elasticsearch as "' + diff --git a/partials/paneleditor.html b/partials/paneleditor.html index f5eb79005b8..add08ccc53f 100644 --- a/partials/paneleditor.html +++ b/partials/paneleditor.html @@ -1,17 +1,15 @@
- +
\ No newline at end of file diff --git a/partials/roweditor.html b/partials/roweditor.html index 130f96ce49e..0378976de00 100644 --- a/partials/roweditor.html +++ b/partials/roweditor.html @@ -59,5 +59,5 @@
\ No newline at end of file