Make volume read-only checkbox a dropdown

This commit is contained in:
Johannes Zellner
2022-11-12 20:49:19 +01:00
parent df4b31c024
commit fa43807eee
3 changed files with 13 additions and 5 deletions

View File

@@ -1010,7 +1010,7 @@
<thead>
<tr>
<th style="width: 40%">{{ 'app.storage.mounts.volume' | tr }}</th>
<th class="text-left hidden-xs hidden-sm">{{ 'app.storage.mounts.readOnly' | tr }}</th>
<th class="text-left hidden-xs hidden-sm">{{ 'app.storage.mounts.permissions.label' | tr }}</th>
<th style="width: 100px" class="text-right">{{ 'main.actions' | tr }}</th>
</tr>
</thead>
@@ -1020,7 +1020,10 @@
<multiselect ng-model="mount.volume" data-compare-by="hostPath" options="volume.name for volume in volumes" data-multiple="false" filter-after-rows="5" scroll-after-rows="10"></multiselect>
</td>
<td class="text-left" style="vertical-align: middle;">
<input type="checkbox" ng-model="mount.readOnly" style="margin-top: initial;"/>
<select class="form-control" ng-model="mount.readOnly">
<option value="true">{{ 'app.storage.mounts.permissions.readOnly' | tr }}</option>
<option value="false">{{ 'app.storage.mounts.permissions.readWrite' | tr }}</option>
</select>
</td>
<td class="text-right no-wrap" style="vertical-align: middle">
<button class="btn btn-danger btn-xs" ng-click="storage.delMount($event, $index)"><i class="far fa-trash-alt"></i></button>