mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
api form
This commit is contained in:
parent
f6ce6426f1
commit
b156a27d1f
@ -54,6 +54,7 @@
|
||||
return Object.keys($scope.selectedSubvaults).length === $scope.subvaults.length;
|
||||
};
|
||||
|
||||
$scope.submitPromise = null;
|
||||
$scope.submit = function (model) {
|
||||
var subvaults = [];
|
||||
for (var subvaultId in $scope.selectedSubvaults) {
|
||||
@ -62,13 +63,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
apiService.organizationUsers.invite({ orgId: $state.params.orgId }, {
|
||||
$scope.submitPromise = apiService.organizationUsers.invite({ orgId: $state.params.orgId }, {
|
||||
email: model.email,
|
||||
type: model.type,
|
||||
subvaults: subvaults
|
||||
}, function () {
|
||||
$uibModalInstance.close();
|
||||
});
|
||||
}).$promise;
|
||||
};
|
||||
|
||||
$scope.close = function () {
|
||||
|
Loading…
Reference in New Issue
Block a user