Dashboard snapshot: cleanup snapshot data after snapshot, #1623

This commit is contained in:
Torkel Ödegaard 2015-03-23 17:34:41 -04:00
parent 6f2a8e27b8
commit 98c0209976

View File

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