Quellcode durchsuchen

feat(notifications): set default value to false for new notifications

bergquist vor 9 Jahren
Ursprung
Commit
6a723dff37
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      public/app/features/alerting/alert_tab_ctrl.ts

+ 5 - 1
public/app/features/alerting/alert_tab_ctrl.ts

@@ -130,7 +130,11 @@ export class AlertTabCtrl {
       return;
     }
 
-    this.alertNotifications.push({name: model.name, iconClass: this.getNotificationIcon(model.type)});
+    this.alertNotifications.push({
+      name: model.name,
+      iconClass: this.getNotificationIcon(model.type),
+      isDefault: false
+    });
     this.alert.notifications.push({id: model.id});
 
     // reset plus button