Fix restore code path to use remotePath

This commit is contained in:
Girish Ramakrishnan
2022-04-05 09:41:09 -07:00
parent 9c6b3a9825
commit 9540a0606c
6 changed files with 36 additions and 36 deletions

View File

@@ -208,10 +208,10 @@
<select class="form-control" id="storageProvider" ng-model="importBackup.provider" ng-options="a.value as a.name for a in storageProvider" ng-change="importBackup.clearForm()" ng-disabled="importBackup.busy"></select>
</div>
<div class="form-group" ng-class="{ 'has-error': importBackup.error.key }">
<label ng-show="importBackup.provider !== 'filesystem'" class="control-label" for="inputImportBackupId">Backup ID</label>
<div class="form-group" ng-class="{ 'has-error': importBackup.error.remotePath }">
<label ng-show="importBackup.provider !== 'filesystem'" class="control-label" for="inputImportBackupId">Remote Path</label>
<label ng-show="importBackup.provider === 'filesystem'" class="control-label" for="inputImportBackupId">Backup Path</label>
<input type="text" class="form-control" ng-model="importBackup.backupId" id="inputImportBackupId" ng-disabled="importBackup.busy" required>
<input type="text" class="form-control" ng-model="importBackup.remotePath" id="inputImportRemotePath" ng-disabled="importBackup.busy" required>
</div>
<!-- S3/Minio/SOS/GCS -->