volumes: hide hostPath for non noop
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<p class="small text-info" ng-hide="volumeConfigure.mountType === 'noop'" ng-bind-html="'volumes.addVolumeDialog.mountTypeInfo' | tr"></p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group" ng-show="volumeConfigure.mountType === 'noop'">
|
||||
<label class="control-label">{{ 'volumes.hostPath' | tr }}</label>
|
||||
<input type="text" class="form-control" ng-model="volumeConfigure.hostPath" name="hostPath" ng-show="volumeConfigure.adding" ng-disabled="volumeConfigure.busy" placeholder="/mnt/data" autofocus>
|
||||
<p ng-hide="volumeConfigure.adding">{{ volumeConfigure.volume.hostPath }}</p>
|
||||
@@ -128,8 +128,9 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<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: 25%" class="text-left">{{ 'volumes.name' | tr }}</th>
|
||||
<th style="width: 10%" class="text-left">{{ 'volumes.type' | tr }}</th>
|
||||
<th style="width: 55%" class="text-left">{{ 'volumes.hostPath' | tr }}</th>
|
||||
<th style="width: 10%" class="text-right">{{ 'main.actions' | tr }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -142,8 +143,12 @@
|
||||
<td class="elide-table-cell hand" ng-click="volumeConfigure.show(volume)">
|
||||
{{ volume.name }}
|
||||
</td>
|
||||
<td class="elide-table-cell hand" ng-click="volumeConfigure.show(volume)">
|
||||
{{ volume.mountType }}
|
||||
</td>
|
||||
<td class="text-left elide-table-cell hidden-xs hidden-sm hand" ng-click="volumeConfigure.show(volume)">
|
||||
{{ volume.hostPath }} ({{ volume.mountType }})
|
||||
<span ng-show="volume.mountType !== 'noop'">{{ volume.mountOptions.host || volume.mountOptions.diskPath || volume.hostPath }}{{ volume.mountOptions.remoteDir }}</span>
|
||||
<span ng-show="volume.mountType === 'noop'">{{ volume.hostPath }}</span>
|
||||
</td>
|
||||
<td class="text-right no-wrap" style="vertical-align: bottom">
|
||||
<button class="btn btn-xs btn-default" ng-click="volumeConfigure.show(volume)" title="{{ 'volumes.tooltipEdit' | tr }}"><i class="fa fa-pencil-alt"></i></button>
|
||||
|
||||
Reference in New Issue
Block a user