Explorar o código

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

bergquist %!s(int64=9) %!d(string=hai) anos
pai
achega
6a723dff37
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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