feat(host-view): add loading indicator to devices-panel

pull/2255/head
Chaim Lev-Ari 2018-09-30 09:28:45 +03:00
parent fabaae66c2
commit e684cdad8c
1 changed files with 9 additions and 1 deletions

View File

@ -11,10 +11,18 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="device in $ctrl.devices">
<tr ng-if="$ctrl.devices && $ctrl.devices.length" ng-repeat="device in $ctrl.devices">
<td>{{device.Name}}</td>
<td>{{device.Vendor}}</td>
</tr>
<tr ng-if="!$ctrl.devices">
<td colspan="6" class="text-center text-muted">Loading...</td>
</tr>
<tr ng-if="$ctrl.devices.length === 0">
<td colspan="6" class="text-center text-muted">
No device available.
</td>
</tr>
</tbody>
</table>
</rd-widget-body>