mirror of
https://github.com/bitwarden/web
synced 2025-12-16 08:13:22 +00:00
collection add/edit groups
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
if (user && user.Collections) {
|
||||
for (var i = 0; i < user.Collections.length; i++) {
|
||||
collections[user.Collections[i].Id] = {
|
||||
collectionId: user.Collections[i].Id,
|
||||
id: user.Collections[i].Id,
|
||||
readOnly: user.Collections[i].ReadOnly
|
||||
};
|
||||
}
|
||||
@@ -37,7 +37,7 @@
|
||||
if ($event.target.checked) {
|
||||
for (var i = 0; i < $scope.collections.length; i++) {
|
||||
collections[$scope.collections[i].id] = {
|
||||
collectionId: $scope.collections[i].id,
|
||||
id: $scope.collections[i].id,
|
||||
readOnly: ($scope.collections[i].id in $scope.selectedCollections) ?
|
||||
$scope.selectedCollections[$scope.collections[i].id].readOnly : false
|
||||
};
|
||||
@@ -53,7 +53,7 @@
|
||||
}
|
||||
else {
|
||||
$scope.selectedCollections[id] = {
|
||||
collectionId: id,
|
||||
id: id,
|
||||
readOnly: false
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user