mirror of
https://github.com/grafana/grafana.git
synced 2025-01-19 13:03:32 -06:00
Dashboard snapshot: cleanup snapshot data after snapshot, #1623
This commit is contained in:
parent
6f2a8e27b8
commit
98c0209976
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user