Browse Source

AMBARI-11235 Should 'Set Recommended Value'-button be available for configs with type 'password'. (ababiichuk)

aBabiichuk 10 years ago
parent
commit
fddbaf4ddf
1 changed files with 3 additions and 2 deletions
  1. 3 2
      ambari-web/app/models/configs/objects/service_config_property.js

+ 3 - 2
ambari-web/app/models/configs/objects/service_config_property.js

@@ -137,7 +137,8 @@ App.ServiceConfigProperty = Em.Object.extend({
    * @type {boolean}
    */
   recommendedValueExists: function () {
-    return !Em.isNone(this.get('recommendedValue')) && this.get('isRequiredByAgent') && !this.get('cantBeUndone');
+    return !Em.isNone(this.get('recommendedValue')) && (this.get('recommendedValue') != "")
+      && this.get('isRequiredByAgent') && !this.get('cantBeUndone');
   }.property('recommendedValue'),
 
   /**
@@ -469,4 +470,4 @@ App.ServiceConfigProperty = Em.Object.extend({
     return isError;
   }
 
-});
+});