restore: skipDnsSetup flag

This commit is contained in:
Girish Ramakrishnan
2021-02-24 15:16:29 -08:00
parent 5cd23ff19f
commit 0980a394b7
3 changed files with 14 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
$scope.password = '';
$scope.encrypted = false; // only used if a backup config contains that flag
$scope.setupToken = '';
$scope.skipDnsSetup = false;
$scope.sysinfo = {
provider: 'generic',
@@ -274,7 +275,7 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
sysinfoConfig.ifname = $scope.sysinfo.ifname;
}
Client.restore(backupConfig, $scope.backupId.replace(/\.tar\.gz(\.enc)?$/, ''), version ? version[1] : '', sysinfoConfig, function (error) {
Client.restore(backupConfig, $scope.backupId.replace(/\.tar\.gz(\.enc)?$/, ''), version ? version[1] : '', sysinfoConfig, $scope.skipDnsSetup, function (error) {
$scope.busy = false;
if (error) {