1
0
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:
Kyle Spearrin
2017-03-29 21:26:48 -04:00
parent 916519a43a
commit 616a442fcb
2 changed files with 9 additions and 2 deletions

View File

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