Commit 98c02099 by Torkel Ödegaard

Dashboard snapshot: cleanup snapshot data after snapshot, #1623

parent 6f2a8e27
...@@ -26,6 +26,12 @@ function (angular) { ...@@ -26,6 +26,12 @@ function (angular) {
panel.links = []; panel.links = [];
}); });
// cleanup snapshotData
$scope.dashboard.snapshot = false;
$scope.dashboard.forEachPanel(function(panel) {
delete panel.snapshotData;
});
var apiUrl = '/api/snapshots'; var apiUrl = '/api/snapshots';
if (makePublic) { if (makePublic) {
...@@ -46,8 +52,7 @@ function (angular) { ...@@ -46,8 +52,7 @@ function (angular) {
$scope.loading = false; $scope.loading = false;
}); });
$scope.dashboard.snapshot = false;
$scope.appEvent('dashboard-snapshot-cleanup');
}, 2000); }, 2000);
}; };
......
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