ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiw...@apache.org
Subject ambari git commit: AMBARI-18639. Ambari UI does not allow to modify EMPTY threshold text of OK and WARNING.(xiwang)
Date Thu, 20 Oct 2016 21:54:56 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 03f7b9095 -> 5256a7890


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/trunk
Commit: 5256a78908ec9a635bf7e59480511d2ca0d33363
Parents: 03f7b90
Author: Xi Wang <xiwang@apache.org>
Authored: Tue Oct 18 17:00:19 2016 -0700
Committer: Xi Wang <xiwang@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;
   },
 
   /**


Mime
View raw message