mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 11:43:46 +00:00
org user invites and confirmation
This commit is contained in:
14
src/app/organization/organizationPeopleInviteController.js
Normal file
14
src/app/organization/organizationPeopleInviteController.js
Normal file
@@ -0,0 +1,14 @@
|
||||
angular
|
||||
.module('bit.organization')
|
||||
|
||||
.controller('organizationPeopleInviteController', function ($scope, $state, $uibModalInstance, apiService) {
|
||||
$scope.submit = function (model) {
|
||||
apiService.organizationUsers.invite({ orgId: $state.params.orgId }, { email: model.email }, function () {
|
||||
$uibModalInstance.close();
|
||||
});
|
||||
};
|
||||
|
||||
$scope.close = function () {
|
||||
$uibModalInstance.dismiss('cancel');
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user