This commit is contained in:
Niels Lyngsø
2023-03-29 14:43:08 +02:00
parent d908b0282f
commit 5fadd1587e

View File

@@ -20,6 +20,8 @@ export class UmbDocumentWorkspaceElement extends UmbLitElement {
path: 'create/:parentKey/:documentTypeKey',
component: () => this.#element,
setup: async (component: HTMLElement, info: IRoutingInfo) => {
// TODO: use parent key:
// TODO: Notice the perspective of permissions here, we need to check if the user has access to create a document of this type under this parent?
const parentKey = info.match.params.parentKey;
const documentTypeKey = info.match.params.documentTypeKey;
this.#workspaceContext.createScaffold(documentTypeKey);