Fix import from fs
This commit is contained in:
@@ -1943,8 +1943,8 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
var backupConfig;
|
||||
try {
|
||||
backupConfig = JSON.parse(result.target.result);
|
||||
if (backupConfig.provider === 'filesystem') { // patch the backupId to have the full path
|
||||
backupConfig.backupId = backupConfig.backupFolder + '/' + backupConfig.backupId;
|
||||
if (backupConfig.provider === 'filesystem') { // patch the remotePath to have the full path
|
||||
backupConfig.remotePath = backupConfig.backupFolder + '/' + backupConfig.remotePath;
|
||||
delete backupConfig.backupFolder;
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user