diff --git a/Duplicati/Server/webroot/ngax/scripts/directives/waitArea.js b/Duplicati/Server/webroot/ngax/scripts/directives/waitArea.js index cb0d4cb9d..181796b72 100644 --- a/Duplicati/Server/webroot/ngax/scripts/directives/waitArea.js +++ b/Duplicati/Server/webroot/ngax/scripts/directives/waitArea.js @@ -3,16 +3,12 @@ backupApp.directive('waitArea', function() { restrict: 'E', scope: { taskid: '=taskid', - text: '=text', - allowCancel: '=allowCancel' + text: '=text' }, templateUrl: 'templates/waitarea.html', - controller: function($scope, ServerStatus, AppService) { + controller: function($scope, ServerStatus) { $scope.ServerStatus = ServerStatus; $scope.serverstate = ServerStatus.watch($scope); - $scope.cancelTask = function() { - AppService.post('/task/' + $scope.taskid + '/stop'); - }; } } }); diff --git a/Duplicati/Server/webroot/ngax/templates/restore.html b/Duplicati/Server/webroot/ngax/templates/restore.html index d09f1b1a8..1f7601a72 100644 --- a/Duplicati/Server/webroot/ngax/templates/restore.html +++ b/Duplicati/Server/webroot/ngax/templates/restore.html @@ -149,7 +149,7 @@