import: fix typo in mountPoint parameter

mountpoint provider supports prefix (except not via UI). It's more
natural for the user to enter the actual mountpoint than the filesystem
path directly.
This commit is contained in:
Girish Ramakrishnan
2024-04-08 18:44:44 +02:00
parent e5477351f8
commit c73609211a

View File

@@ -1484,8 +1484,8 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
backupConfig.mountOptions = $scope.importBackup.mountOptions;
backupConfig.prefix = '';
} else if (backupConfig.provider === 'mountpoint') {
backupConfig.mountOptions = {};
backupConfig.mountPoint = $scope.mountPoint;
backupConfig.prefix = '';
backupConfig.mountPoint = $scope.importBackup.mountPoint;
} else if (backupConfig.provider === 'filesystem') {
var parts = remotePath.split('/');
remotePath = parts.pop() || parts.pop(); // removes any trailing slash. this is basename()