Pass the task id to stopTask

This commit is contained in:
Girish Ramakrishnan
2019-01-24 15:55:21 -08:00
parent 998c9bdeb7
commit 52cdec8d3c
2 changed files with 2 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
},
stopBackup: function () {
Client.stopTask('backup', function (error) {
Client.stopTask($scope.createBackup.taskId, function (error) {
if (error) {
if (error.statusCode === 409) {
$scope.createBackup.errorMessage = 'No backup is currently in progress';