feat(invite): redesign for pending invite list, added revoke button and link, copy invite also works now, #2353

This commit is contained in:
Torkel Ödegaard
2015-07-20 14:26:49 +02:00
parent 3242354a4b
commit 024c112944
7 changed files with 16 additions and 4 deletions

View File

@@ -38,10 +38,15 @@ function (angular) {
backendSrv.delete('/api/org/users/' + user.userId).then($scope.get);
};
$scope.revokeInvite = function(invite) {
$scope.revokeInvite = function(invite, evt) {
evt.stopPropagation();
backendSrv.patch('/api/org/invites/' + invite.id + '/revoke').then($scope.get);
};
$scope.copyInviteToClipboard = function(evt) {
evt.stopPropagation();
};
$scope.openInviteModal = function() {
var modalScope = $scope.$new();
modalScope.invitesSent = function() {