diff --git a/src/js/restore.js b/src/js/restore.js index cfc38a829..eab72e5dd 100644 --- a/src/js/restore.js +++ b/src/js/restore.js @@ -178,7 +178,8 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien { name: 'SSHFS Mount', value: 'sshfs' }, { name: 'UpCloud Object Storage', value: 'upcloud-objectstorage' }, { name: 'Vultr Object Storage', value: 'vultr-objectstorage' }, - { name: 'Wasabi', value: 'wasabi' } + { name: 'Wasabi', value: 'wasabi' }, + { name: 'XFS Disk', value: 'xfs' }, ]; $scope.formats = [ @@ -194,7 +195,7 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien }; $scope.mountlike = function (provider) { - return provider === 'sshfs' || provider === 'cifs' || provider === 'nfs' || provider === 'mountpoint' || provider === 'ext4'; + return provider === 'sshfs' || provider === 'cifs' || provider === 'nfs' || provider === 'mountpoint' || provider === 'ext4' || provider === 'xfs'; }; $scope.restore = function () { @@ -288,7 +289,7 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien backupConfig.mountOptions.port = $scope.mountOptions.port; backupConfig.mountOptions.privateKey = $scope.mountOptions.privateKey; } - } else if (backupConfig.provider === 'ext4') { + } else if (backupConfig.provider === 'ext4' || backupConfig.provider === 'xfs') { backupConfig.mountOptions.diskPath = $scope.mountOptions.diskPath; } else if (backupConfig.provider === 'mountpoint') { backupConfig.mountPoint = $scope.mountPoint; diff --git a/src/restore.html b/src/restore.html index 7b05cdbc4..cad5a2a0f 100644 --- a/src/restore.html +++ b/src/restore.html @@ -130,10 +130,10 @@ - -