1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00
This commit is contained in:
Kyle Spearrin 2017-03-28 22:04:09 -04:00
parent f6ce6426f1
commit b156a27d1f

View File

@ -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 () {