Fix app import
This commit is contained in:
@@ -201,7 +201,7 @@ async function onSubmit() {
|
||||
data.backupConfig.preserveAttributes = !!providerConfig.value.preserveAttributes;
|
||||
}
|
||||
} else if (provider.value === 'filesystem') {
|
||||
data.backupConfig.backupFolder = providerConfig.value.backupFolder;
|
||||
data.backupConfig.backupDir = providerConfig.value.backupDir;
|
||||
data.backupConfig.noHardlinks = !providerConfig.value.useHardlinks;
|
||||
data.backupConfig.preserveAttributes = true;
|
||||
} else if (provider.value === 'gcs') {
|
||||
@@ -252,8 +252,8 @@ function onBackupConfigChanged(event) {
|
||||
try {
|
||||
config = JSON.parse(result.target.result);
|
||||
if (config.provider === 'filesystem') { // this allows a user to upload a backup to server and import easily with an absolute path
|
||||
config.remotePath = config.backupFolder + '/' + config.remotePath;
|
||||
delete config.backupFolder;
|
||||
config.remotePath = config.backupDir + '/' + config.remotePath;
|
||||
delete config.backupDir;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Unable to parse backup config', e);
|
||||
|
||||
Reference in New Issue
Block a user