Fix storage UI to select volumes
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user