浏览代码

AMBARI-15481. Metrics Alert definitions not updated through Alerts UI (alexantonenko)

Alex Antonenko 9 年之前
父节点
当前提交
a4d5a31bb3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ambari-web/app/controllers/main/alerts/definition_configs_controller.js

+ 2 - 2
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 && warning.get(property) ? warning.get(property) : null;
+    return warning && !Ember.isEmpty(warning.get(property)) ? warning.get(property) : null;
   },
 
   /**
@@ -346,7 +346,7 @@ App.MainAlertDefinitionConfigsController = Em.Controller.extend({
         label: isWizard ? '' : parameter.get('displayName'),
         threshold: isWizard ? '' : parameter.get('threshold'),
         units: isWizard ? '' : parameter.get('units'),
-        type: isWizard ? '' : parameter.get('type'),
+        type: isWizard ? '' : parameter.get('type')
       }));
     });