mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard snapshot: cleanup snapshot data after snapshot, #1623
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user