import: add seal option

This commit is contained in:
Girish Ramakrishnan
2024-04-15 22:19:51 +02:00
parent 5dbe2ce2e4
commit 37e2269387
3 changed files with 20 additions and 2 deletions

View File

@@ -1417,7 +1417,17 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
remotePath: '',
password: '',
encryptedFilenames: true,
mountOptions: {}, // host, port, username, password, remoteDir, diskPath, user, privateKey
mountOptions: {
host: '',
remoteDir: '',
username: '',
password: '',
diskPath: '',
user: '',
seal: true,
port: 22,
privateKey: ''
},
encrypted: false, // helps with ng-required when backupConfig is read from file
clearForm: function () {
@@ -1435,7 +1445,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
$scope.importBackup.password = '';
$scope.importBackup.encryptedFilenames = true;
$scope.importBackup.remotePath = '';
$scope.importBackup.mountOptions = {};
$scope.importBackup.mountOptions = { host: '', remoteDir: '', username: '', password: '', diskPath: '', seal: true, user: '', port: 22, privateKey: '' };
},
submit: function () {