فهرست منبع

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

Yusaku Sako 12 سال پیش
والد
کامیت
4fdeab528f
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  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>