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 2016/03/18 16:05:18 UTC
ambari git commit: AMBARI-15481. Metrics Alert definitions not
updated through Alerts UI (alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/branch-2.2 dd846600f -> acb29037a
AMBARI-15481. Metrics Alert definitions not updated through Alerts UI (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/acb29037
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/acb29037
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/acb29037
Branch: refs/heads/branch-2.2
Commit: acb29037a6435d174c8442ec866170e269d6fa82
Parents: dd84660
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri Mar 18 16:45:16 2016 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri Mar 18 17:05:13 2016 +0200
----------------------------------------------------------------------
.../app/controllers/main/alerts/definition_configs_controller.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/acb29037/ambari-web/app/controllers/main/alerts/definition_configs_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/alerts/definition_configs_controller.js b/ambari-web/app/controllers/main/alerts/definition_configs_controller.js
index 77a47fa..a20cf76 100644
--- a/ambari-web/app/controllers/main/alerts/definition_configs_controller.js
+++ b/ambari-web/app/controllers/main/alerts/definition_configs_controller.js
@@ -126,7 +126,7 @@ App.MainAlertDefinitionConfigsController = Em.Controller.extend({
*/
getThresholdsProperty: function (type, property) {
var warning = this.get('content.reporting').findProperty('type', type);
- return warning && warning.get(property) ? warning.get(property) : null;
+ return warning && !Ember.isEmpty(warning.get(property)) ? warning.get(property) : null;
},
/**