Browse Source

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

Yusaku Sako 12 years ago
parent
commit
4fdeab528f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      ambari-web/app/templates/wizard/step9.hbs

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

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