فهرست منبع

AMBARI-13030. Alerts are automatically added to newly created alert group if some alert group was chosen (alexantonenko)

Alex Antonenko 10 سال پیش
والد
کامیت
efb10fb026
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js

+ 1 - 1
ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js

@@ -757,7 +757,7 @@ App.ManageAlertGroupsController = Em.Controller.extend({
           label: function () {
             return this.get('displayName') + ' (' + this.get('definitions.length') + ')';
           }.property('displayName', 'definitions.length'),
-          definitions: self.get('selectedAlertGroup.definitions').slice(0),
+          definitions: duplicated ? self.get('selectedAlertGroup.definitions').slice(0) : [],
           notifications: self.get('alertGlobalNotifications'),
           isAddDefinitionsDisabled: false
         });