1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-19 02:51:14 +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; return Object.keys($scope.selectedSubvaults).length === $scope.subvaults.length;
}; };
$scope.submitPromise = null;
$scope.submit = function (model) { $scope.submit = function (model) {
var subvaults = []; var subvaults = [];
for (var subvaultId in $scope.selectedSubvaults) { 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, email: model.email,
type: model.type, type: model.type,
subvaults: subvaults subvaults: subvaults
}, function () { }, function () {
$uibModalInstance.close(); $uibModalInstance.close();
}); }).$promise;
}; };
$scope.close = function () { $scope.close = function () {