mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(invite): redesign for pending invite list, added revoke button and link, copy invite also works now, #2353
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user