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

@@ -41,7 +41,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
},
stopUpdate: function () {
Client.stopTask('update', function (error) {
Client.stopTask($scope.update.taskId, function (error) {
if (error) {
if (error.statusCode === 409) {
$scope.update.errorMessage = 'No update is currently in progress';