You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2016/10/21 17:20:11 UTC

[23/30] ambari git commit: AMBARI-18639. Ambari UI does not allow to modify EMPTY threshold text of OK and WARNING.(xiwang)

AMBARI-18639. Ambari UI does not allow to modify EMPTY threshold text of OK and WARNING.(xiwang)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5256a789
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5256a789
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5256a789

Branch: refs/heads/branch-feature-AMBARI-18456
Commit: 5256a78908ec9a635bf7e59480511d2ca0d33363
Parents: 03f7b90
Author: Xi Wang <xi...@apache.org>
Authored: Tue Oct 18 17:00:19 2016 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Thu Oct 20 14:02:10 2016 -0700

----------------------------------------------------------------------
 .../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/5256a789/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 9b48b35..4c82556 100644
--- a/ambari-web/app/controllers/main/alerts/definition_configs_controller.js
+++ b/ambari-web/app/controllers/main/alerts/definition_configs_controller.js
@@ -128,7 +128,7 @@ App.MainAlertDefinitionConfigsController = Em.Controller.extend({
    */
   getThresholdsProperty: function (type, property) {
     var warning = this.get('content.reporting').findProperty('type', type);
-    return warning && !Ember.isEmpty(warning.get(property)) ? warning.get(property) : null;
+    return warning && !Ember.isNone(warning.get(property)) ? warning.get(property) : null;
   },
 
   /**