Patch up the token delete button with the route

This commit is contained in:
Johannes Zellner
2016-06-07 15:38:42 +02:00
parent 290ab6cc7d
commit 8144c6d086
3 changed files with 16 additions and 1 deletions
+8
View File
@@ -252,6 +252,14 @@ angular.module('Application').controller('AccountController', ['$scope', '$locat
}
};
$scope.removeToken = function (client, token) {
Client.delToken(client.id, token.accessToken, function (error) {
if (error) console.error(error);
refreshClientTokens(client);
});
};
$scope.removeAccessTokens = function (client) {
client.busy = true;