Added share link for ES stored dashboards

This commit is contained in:
Rashid Khan
2013-02-28 15:35:44 -07:00
parent 430bdd0343
commit 6d2af0d848
5 changed files with 27 additions and 2 deletions
+9
View File
@@ -89,6 +89,15 @@ angular.module('kibana.dashcontrol', [])
}
}
$scope.share_link = function(title,type,id) {
$scope.share = {
location : location.href.replace(location.hash,""),
type : type,
id : id,
link : location.href.replace(location.hash,"")+"#dashboard/"+type+"/"+id
};
}
$scope.purge = function() {
if (Modernizr.localstorage) {
localStorage['dashboard'] = '';