Procházet zdrojové kódy

AMBARI-7031. FE: Next button not enabled when only /validation ERRORs are there. (ababiichuk via srimanth)

Srimanth Gunturi před 10 roky
rodič
revize
966fff4153
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      ambari-web/app/mixins/common/serverValidator.js

+ 2 - 2
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);