Update collection permissions UI (#6917)
This commit is contained in:
@@ -76,4 +76,7 @@ export default class CollectionGroupMembershipsStore extends Store<CollectionGro
|
||||
groupId,
|
||||
});
|
||||
}
|
||||
|
||||
inCollection = (collectionId: string) =>
|
||||
this.orderedData.filter((cgm) => cgm.collectionId === collectionId);
|
||||
}
|
||||
|
||||
@@ -82,4 +82,9 @@ export default class MembershipsStore extends Store<Membership> {
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
inCollection = (collectionId: string) =>
|
||||
this.orderedData.filter(
|
||||
(membership) => membership.collectionId === collectionId
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user