Browse Source

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

bergquist 9 năm trước cách đây
mục cha
commit
6a723dff37
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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