Pārlūkot izejas kodu

AMBARI-2596. Show "No hosts to display" message on step9 if no hosts in table. (atkach via yusaku)

Yusaku Sako 12 gadi atpakaļ
vecāks
revīzija
4fdeab528f
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      ambari-web/app/templates/wizard/step9.hbs

+ 6 - 0
ambari-web/app/templates/wizard/step9.hbs

@@ -77,6 +77,7 @@
         </thead>
 
         <tbody>
+        {{#if controller.visibleHosts.length}}
         {{#each host in controller.visibleHosts}}
         {{#view App.HostStatusView objBinding="host"}}
         <td>
@@ -99,6 +100,11 @@
 
         {{/view}}
         {{/each}}
+        {{else}}
+        <tr>
+            <td colspan="3"><p>{{t installer.step3.hosts.noHosts}}</p></td>
+        </tr>
+        {{/if}}
 
         </tbody>
       </table>