1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-10 20:43:38 +00:00

group accessall and readonly

This commit is contained in:
Kyle Spearrin
2017-05-10 12:17:26 -04:00
parent a4473ad739
commit ea24d72f01
8 changed files with 130 additions and 80 deletions

View File

@@ -46,12 +46,15 @@
$scope.submit = function (model) {
var group = {
name: model.name,
collectionIds: []
accessAll: !!model.accessAll
};
for (var id in $scope.selectedCollections) {
if ($scope.selectedCollections.hasOwnProperty(id)) {
group.collectionIds.push(id);
if (!group.accessAll) {
group.collectionIds = [];
for (var id in $scope.selectedCollections) {
if ($scope.selectedCollections.hasOwnProperty(id)) {
group.collectionIds.push(id);
}
}
}