AMBARI-11235 Should 'Set Recommended Value'-button be available for configs with type 'password'. (ababiichuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/fddbaf4d Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/fddbaf4d Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/fddbaf4d Branch: refs/heads/trunk Commit: fddbaf4ddf2cbac63ca629d44e41ae8e56a0fec9 Parents: 3441765 Author: aBabiichuk <[email protected]> Authored: Tue May 19 13:08:18 2015 +0300 Committer: aBabiichuk <[email protected]> Committed: Tue May 19 13:08:18 2015 +0300 ---------------------------------------------------------------------- .../app/models/configs/objects/service_config_property.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/fddbaf4d/ambari-web/app/models/configs/objects/service_config_property.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/models/configs/objects/service_config_property.js b/ambari-web/app/models/configs/objects/service_config_property.js index 46f6fa6..06994c0 100644 --- a/ambari-web/app/models/configs/objects/service_config_property.js +++ b/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; } -}); +}); \ No newline at end of file
