AMBARI-7031. FE: Next button not enabled when only /validation ERRORs are there. (ababiichuk via srimanth)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/966fff41 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/966fff41 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/966fff41 Branch: refs/heads/branch-alerts-dev Commit: 966fff415353beff39a4c4cc72ae38b5974ffaa5 Parents: e007d7f Author: Srimanth Gunturi <[email protected]> Authored: Wed Aug 27 14:14:53 2014 -0700 Committer: Srimanth Gunturi <[email protected]> Committed: Wed Aug 27 14:14:53 2014 -0700 ---------------------------------------------------------------------- ambari-web/app/mixins/common/serverValidator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/966fff41/ambari-web/app/mixins/common/serverValidator.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mixins/common/serverValidator.js b/ambari-web/app/mixins/common/serverValidator.js index 3a1dbed..71169c5 100644 --- a/ambari-web/app/mixins/common/serverValidator.js +++ b/ambari-web/app/mixins/common/serverValidator.js @@ -236,8 +236,8 @@ App.ServerValidatorMixin = Em.Mixin.create({ if ((property.get('filename') == item['config-type'] + '.xml') && (property.get('name') == item['config-name'])) { if (item.level == "ERROR") { self.set('configValidationError', true); - property.set('warnMessage', item.message); - property.set('warn', true); + property.set('errorMessage', item.message); + property.set('error', true); } else if (item.level == "WARN") { self.set('configValidationWarning', true); property.set('warnMessage', item.message);
