소스 검색

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>