Pass the task id to stopTask
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user