From d345ff56329bd9830f654ec8b055ccf221aac8ec Mon Sep 17 00:00:00 2001 From: Rune Henriksen Date: Sat, 24 Nov 2018 13:34:17 +0100 Subject: [PATCH] Export passwords for the commandline gui --- .../scripts/controllers/CommandlineController.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Duplicati/Server/webroot/ngax/scripts/controllers/CommandlineController.js b/Duplicati/Server/webroot/ngax/scripts/controllers/CommandlineController.js index 4afbae8f9..2bc18fd0c 100644 --- a/Duplicati/Server/webroot/ngax/scripts/controllers/CommandlineController.js +++ b/Duplicati/Server/webroot/ngax/scripts/controllers/CommandlineController.js @@ -35,7 +35,7 @@ backupApp.controller('CommandlineController', function($scope, $routeParams, $lo $scope.$watchCollection("ExtendedOptions", reloadOptionsList); $scope.$watch("TargetURL", reloadOptionsList); $scope.$on('systeminfochanged', reloadOptionsList); - + reloadOptionsList(); var scope = $scope; @@ -48,7 +48,7 @@ backupApp.controller('CommandlineController', function($scope, $routeParams, $lo var opts = AppUtils.parseOptionStrings($scope.ExtendedOptions || []); var combined = angular.copy($scope.Arguments || []); - + if (($scope.TargetURL || '').trim().length != 0) combined.unshift($scope.TargetURL); @@ -79,7 +79,7 @@ backupApp.controller('CommandlineController', function($scope, $routeParams, $lo $scope.Abort = function() { AppService.post('/commandline/' + viewid + '/abort' ).then(function(resp) { - + }, function() { AppUtils.connectionError.apply(AppUtils, arguments); }); @@ -155,13 +155,13 @@ backupApp.controller('CommandlineController', function($scope, $routeParams, $lo } if ($routeParams.backupid != null) { - AppService.get('/backup/' + $routeParams.backupid + '/export?argsonly=true').then( + AppService.get('/backup/' + $routeParams.backupid + '/export?argsonly=true&export-passwords=true').then( function(resp) { $scope.TargetURL = resp.data.Backend; $scope.Arguments = resp.data.Arguments; $scope.ExtendedOptions = resp.data.Options; $scope.Command = 'backup'; - }, + }, function(resp) { var message = resp.statusText; if (resp.data != null && resp.data.Message != null) @@ -171,4 +171,4 @@ backupApp.controller('CommandlineController', function($scope, $routeParams, $lo } ); } -}); \ No newline at end of file +});