mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 22:15:04 +02:00
UBERF-8573 Hide archived teamspaces and drives (#7112)
This commit is contained in:
@@ -159,6 +159,10 @@ export async function canUnlockDocument (doc: Document | Document[]): Promise<bo
|
||||
return arr.some((p) => p.lockedBy != null)
|
||||
}
|
||||
|
||||
export function hideArchivedTeamspaces (value: boolean, query: DocumentQuery<Teamspace>): DocumentQuery<Teamspace> {
|
||||
return value ? { ...query, archived: false } : query
|
||||
}
|
||||
|
||||
export default async (): Promise<Resources> => ({
|
||||
component: {
|
||||
CreateDocument,
|
||||
@@ -196,7 +200,8 @@ export default async (): Promise<Resources> => ({
|
||||
CanLockDocument: canLockDocument,
|
||||
CanUnlockDocument: canUnlockDocument,
|
||||
GetDocumentLinkId: getDocumentLinkId,
|
||||
ParseDocumentId: parseDocumentId
|
||||
ParseDocumentId: parseDocumentId,
|
||||
HideArchivedTeamspaces: hideArchivedTeamspaces
|
||||
},
|
||||
resolver: {
|
||||
Location: resolveLocation
|
||||
|
||||
Reference in New Issue
Block a user