Fix storage UI to select volumes

This commit is contained in:
Girish Ramakrishnan
2022-06-03 09:10:16 -07:00
parent 4d01b6ff6d
commit 0b4e1695fe
2 changed files with 20 additions and 32 deletions

View File

@@ -966,16 +966,10 @@
<br/>
<div class="form-group" ng-show="storage.location.type === 'custom'" ng-class="{ 'has-error': storageDataDirForm.$dirty && storage.error.dataDir }">
<label class="control-label">Folder Path</label>
<input type="text" class="form-control" name="dataDir" placeholder="{{ 'app.storage.appdata.dataDirPlaceholder' | tr }}" ng-model="storage.dataDir">
<div ng-show="storage.error.dataDir">{{ storage.error.dataDir }}</div>
</div>
<div class="form-group" ng-show="storage.location.type === 'volume'" ng-class="{ 'has-error': storageDataDirForm.$dirty && storage.error.dataPrefix }">
<label class="control-label">Folder Prefix</label>
<input type="text" class="form-control" name="dataPrefix" placeholder="Prefix within the Volume" ng-model="storage.dataPrefix">
<div ng-show="storage.error.dataPrefix">{{ storage.error.dataPrefix }}</div>
<div class="form-group" ng-show="storage.location.type === 'volume'" ng-class="{ 'has-error': storageDataDirForm.$dirty && storage.error.storageVolumePrefix }">
<label class="control-label">Subdirectory</label>
<input type="text" class="form-control" name="storageVolumePrefix" placeholder="Prefix within the Volume" ng-model="storage.storageVolumePrefix">
<div ng-show="storage.error.storageVolumePrefix">{{ storage.error.storageVolumePrefix }}</div>
</div>
<input class="ng-hide" type="submit" ng-disabled="!storageDataDirForm.$dirty || storageDataDirForm.$invalid || storage.busyDataDir"/>