feat: docs managers can action docs & create subdocs (#7077)
* feat: docs managers can action docs & create subdocs * tests --------- Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -88,13 +88,16 @@ export function newTemplatePath(collectionId: string) {
|
||||
export function newDocumentPath(
|
||||
collectionId?: string | null,
|
||||
params: {
|
||||
parentDocumentId?: string;
|
||||
templateId?: string;
|
||||
} = {}
|
||||
): string {
|
||||
return collectionId
|
||||
? `/collection/${collectionId}/new?${queryString.stringify(params)}`
|
||||
: `/doc/new`;
|
||||
: `/doc/new?${queryString.stringify(params)}`;
|
||||
}
|
||||
|
||||
export function newNestedDocumentPath(parentDocumentId?: string): string {
|
||||
return `/doc/new?${queryString.stringify({ parentDocumentId })}`;
|
||||
}
|
||||
|
||||
export function searchPath(
|
||||
|
||||
Reference in New Issue
Block a user