Commit 1b262d33 by yershalom Committed by Torkel Ödegaard

Added json to file name when exporting dashboard (#4869)

parent f6d538bb
...@@ -172,7 +172,7 @@ export class DashNavCtrl { ...@@ -172,7 +172,7 @@ export class DashNavCtrl {
var clone = $scope.dashboard.getSaveModelClone(); var clone = $scope.dashboard.getSaveModelClone();
var blob = new Blob([angular.toJson(clone, true)], { type: "application/json;charset=utf-8" }); var blob = new Blob([angular.toJson(clone, true)], { type: "application/json;charset=utf-8" });
var wnd: any = window; var wnd: any = window;
wnd.saveAs(blob, $scope.dashboard.title + '-' + new Date().getTime()); wnd.saveAs(blob, $scope.dashboard.title + '-' + new Date().getTime() + '.json');
}; };
$scope.snapshot = function() { $scope.snapshot = function() {
......
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