gcs: add to restore UI

This commit is contained in:
Girish Ramakrishnan
2017-12-20 02:06:55 -08:00
parent e4b12f0c4e
commit 3efe8e3393
3 changed files with 55 additions and 2 deletions
+2 -1
View File
@@ -430,7 +430,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
} else if (backupConfig.provider === 'digitalocean-spaces') {
backupConfig.region = 'us-east-1';
}
} else if (backupConfig.provider === 'gcs'){
} else if (backupConfig.provider === 'gcs') {
backupConfig.bucket = $scope.configureBackup.bucket;
backupConfig.prefix = $scope.configureBackup.prefix;
try {
@@ -446,6 +446,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
}
} catch (e) {
$scope.configureBackup.error.generic = 'Cannot parse Google Service Account Key: ' + e.message;
$scope.configureBackup.error.gcsKeyInput = true;
$scope.configureBackup.busy = false;
return;
}