feat(invite): worked on pending invitations list, revoke invite now works, #2353

This commit is contained in:
Torkel Ödegaard
2015-07-20 10:57:39 +02:00
parent 4ac652b127
commit 3242354a4b
11 changed files with 116 additions and 65 deletions

View File

@@ -38,9 +38,8 @@ function (angular) {
backendSrv.delete('/api/org/users/' + user.userId).then($scope.get);
};
$scope.addUser = function() {
if (!$scope.form.$valid) { return; }
backendSrv.post('/api/org/users', $scope.user).then($scope.get);
$scope.revokeInvite = function(invite) {
backendSrv.patch('/api/org/invites/' + invite.id + '/revoke').then($scope.get);
};
$scope.openInviteModal = function() {