Parcourir la source

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

bergquist il y a 9 ans
Parent
commit
6a723dff37
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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;
       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});
     this.alert.notifications.push({id: model.id});
 
 
     // reset plus button
     // reset plus button