mirror of
https://github.com/bitwarden/web
synced 2025-12-16 08:13:22 +00:00
handle errors in org people edit
This commit is contained in:
@@ -69,6 +69,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) {
|
||||
@@ -77,12 +78,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
apiService.organizationUsers.put({ orgId: $state.params.orgId, id: id }, {
|
||||
$scope.submitPromise = apiService.organizationUsers.put({ orgId: $state.params.orgId, id: id }, {
|
||||
type: $scope.type,
|
||||
subvaults: subvaults
|
||||
}, function () {
|
||||
$uibModalInstance.close();
|
||||
});
|
||||
}).$promise;
|
||||
};
|
||||
|
||||
$scope.close = function () {
|
||||
|
||||
Reference in New Issue
Block a user