add volume status indicator
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<form name="volumeConfigureForm" role="form" novalidate ng-submit="volumeConfigure.submit()" autocomplete="off">
|
||||
<fieldset>
|
||||
<p class="has-error text-center" ng-show="volumeConfigure.error">{{ volumeConfigure.error }}</p>
|
||||
<p class="has-error text-center" ng-show="!volumeConfigure.adding && volumeConfigure.volume.status">{{ volumeConfigure.volume.status.message }}</p>
|
||||
|
||||
<div class="form-group" ng-show="volumeConfigure.adding">
|
||||
<label class="control-label">{{ 'volumes.name' | tr }}</label>
|
||||
@@ -106,13 +107,18 @@
|
||||
<table class="table table-hover" style="margin-top: 10px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left">{{ 'volumes.name' | tr }}</th>
|
||||
<th class="text-left">{{ 'volumes.hostPath' | tr }}</th>
|
||||
<th style="width: 100px" class="text-right">{{ 'main.actions' | tr }}</th>
|
||||
<th style="width: 5%"></th>
|
||||
<th style="width: 30%" class="text-left">{{ 'volumes.name' | tr }}</th>
|
||||
<th style="width: 60%" class="text-left">{{ 'volumes.hostPath' | tr }}</th>
|
||||
<th style="width: 10%" class="text-right">{{ 'main.actions' | tr }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="volume in volumes">
|
||||
<td>
|
||||
<i class="fa fa-circle" ng-style="{ color: volume.status.state === 'active' ? '#27CE65' : '#d9534f' }" ng-show="volume.status" uib-tooltip="{{ volume.status.message }}"></i>
|
||||
<i class="fa fa-circle-notch fa-spin" ng-hide="volume.status"></i>
|
||||
</td>
|
||||
<td class="elide-table-cell hand" ng-click="volumeConfigure.show(volume)">
|
||||
{{ volume.name }}
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user