comments
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user