Просмотр исходного кода

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

bergquist 9 лет назад
Родитель
Сommit
6a723dff37
1 измененных файлов с 5 добавлено и 1 удалено
  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