Ver código fonte

AMBARI-6203 Unable to assign host in HA wizard. (atkach)

atkach 11 anos atrás
pai
commit
04cc6b59df

+ 12 - 14
ambari-web/app/styles/application.less

@@ -1336,7 +1336,19 @@ a:focus {
 .full-width-modal {
   .modal {
     .modal-body {
+      div.error{
+        color: #b94a48;
+        .help-inline{
+          color: #b94a48;
+        }
+      }
 
+      div.error input{
+        border-color: #b94a48;
+        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+        -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+      }
       .add-cluster-1{
         width: 100%;
         height : 500px;
@@ -1350,20 +1362,6 @@ a:focus {
           width: 100%;
           height : 100%;
           float: left;
-
-          div.error{
-            color: #b94a48;
-            .help-inline{
-              color: #b94a48;
-            }
-          }
-
-          div.error input{
-            border-color: #b94a48;
-            -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-            -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-          }
         }
         .add-cluster-1-3{
           width: 45%;

+ 9 - 7
ambari-web/app/templates/main/admin/highAvailability/step2.hbs

@@ -36,15 +36,17 @@
           {{display_name}}:
         </label>
         <div class="controls">
-          {{view App.SelectHostView
-            optionValuePath="content.host_name"
-            optionLabelPath="content.host_info"
-            selectedHostBinding="selectedHost"
+          {{#if view.shouldUseInputs}}
+            {{view App.InputHostView
+            componentBinding="this"
+            disabledBinding="isInstalled" }}
+          {{else}}
+            {{view App.SelectHostView
             componentBinding="this"
-            class="host-select"
-            zIdBinding="zId"
             disabledBinding="isInstalled"
-          }}
+            optionValuePath="content.host_name"
+            optionLabelPath="content.host_info" }}
+          {{/if}}
           {{#if showAddControl}}
           {{view App.AddControlView componentNameBinding="component_name"}}
           {{/if}}