save as should only delete threshold for panels with alerts

closes #9681
This commit is contained in:
bergquist
2017-10-27 11:15:47 +02:00
parent b80b5e0317
commit 728471eef4
2 changed files with 71 additions and 1 deletions

View File

@@ -49,7 +49,10 @@ export class SaveDashboardAsModalCtrl {
if (dashboard.id > 0) {
this.clone.rows.forEach(row => {
row.panels.forEach(panel => {
delete panel.thresholds;
if (panel.type === "graph" && panel.alert) {
delete panel.thresholds;
}
delete panel.alert;
});
});