Hook up task cancel action

This commit is contained in:
Johannes Zellner
2020-03-26 00:19:06 +01:00
parent a3594322bd
commit 128704400f
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -117,6 +117,13 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
$scope.view = view;
};
$scope.stopAppTask = function (taskId) {
Client.stopTask(taskId, function (error) {
// we can ignore a call trying to cancel an already done task
if (error && error.statusCode !== 409) Client.error(error);
});
},
$scope.postInstallMessage = {
confirmed: false,
openApp: false,