Remove app task cancel code in apps grid

This commit is contained in:
Johannes Zellner
2019-09-13 15:54:27 +02:00
parent a86df7cdbf
commit 7c9654a541
3 changed files with 0 additions and 113 deletions

View File

@@ -179,36 +179,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
}
};
$scope.appCancel = {
app: {},
busy: false,
show: function (app) {
$scope.appCancel.app = app;
$scope.appCancel.busy = false;
$('#appCancelModal').modal('show');
},
submit: function () {
$scope.appCancel.busy = true;
Client.stopTask($scope.appCancel.app.taskId, function (error) {
if (error) Client.error(error);
setTimeout(function () { // small delay for UI
$scope.appCancel.busy = false;
Client.refreshAppCache($scope.appCancel.app.id); // reflect the new app state immediately
$('#appCancelModal').modal('hide');
}, 1000);
});
return false; // prevent propagation and default
}
};
$scope.appInfo = {
app: {},
message: ''
@@ -339,10 +309,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
return user.username ? user.username : user.email;
};
$scope.cancel = function () {
window.history.back();
};
function fetchUsers() {
Client.getUsers(function (error, users) {
if (error) {