You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/09/08 15:23:09 UTC
ambari git commit: AMBARI-13030. Alerts are automatically added to
newly created alert group if some alert group was chosen (alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 9acb26f27 -> efb10fb02
AMBARI-13030. Alerts are automatically added to newly created alert group if some alert group was chosen (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/efb10fb0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/efb10fb0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/efb10fb0
Branch: refs/heads/trunk
Commit: efb10fb0268c224b0892c1a1ace09cf3cbbb15d1
Parents: 9acb26f
Author: Alex Antonenko <hi...@gmail.com>
Authored: Tue Sep 8 11:45:50 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Tue Sep 8 16:23:05 2015 +0300
----------------------------------------------------------------------
.../app/controllers/main/alerts/manage_alert_groups_controller.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/efb10fb0/ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js b/ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js
index b2b52ea..e956a9e 100644
--- a/ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js
+++ b/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
});