Add modal for client removal

This commit is contained in:
Johannes Zellner
2016-06-07 12:48:12 +02:00
parent c5ebe2c2bf
commit edf8cd736e
2 changed files with 42 additions and 2 deletions

View File

@@ -205,6 +205,25 @@ angular.module('Application').controller('AccountController', ['$scope', '$locat
}
};
$scope.clientRemove = {
busy: false,
client: {},
show: function (client) {
$scope.clientRemove.busy = true;
$scope.clientRemove.client = client;
$('#clientRemoveModal').modal('show');
},
submit: function () {
$scope.clientRemove.busy = true;
$scope.clientRemove.busy = false;
$('#clientRemoveModal').modal('hide');
}
};
$scope.removeAccessTokens = function (client) {
client.busy = true;