Update collection permissions UI (#6917)

This commit is contained in:
Tom Moor
2024-05-16 19:45:09 -04:00
committed by GitHub
parent 728c68be58
commit cae013837b
34 changed files with 1088 additions and 287 deletions

View File

@@ -76,4 +76,7 @@ export default class CollectionGroupMembershipsStore extends Store<CollectionGro
groupId,
});
}
inCollection = (collectionId: string) =>
this.orderedData.filter((cgm) => cgm.collectionId === collectionId);
}

View File

@@ -82,4 +82,9 @@ export default class MembershipsStore extends Store<Membership> {
}
});
};
inCollection = (collectionId: string) =>
this.orderedData.filter(
(membership) => membership.collectionId === collectionId
);
}

View File

@@ -104,6 +104,9 @@ export default class SharesStore extends Store<Share> {
return undefined;
};
getByCollectionId = (collectionId: string): Share | null | undefined =>
find(this.orderedData, (share) => share.collectionId === collectionId);
getByDocumentId = (documentId: string): Share | null | undefined =>
find(this.orderedData, (share) => share.documentId === documentId);
}