simpler url generation
This commit is contained in:
@@ -50,11 +50,11 @@ export class UmbCreateDocumentEntityAction extends UmbEntityActionBase<UmbDocume
|
||||
|
||||
const { documentTypeKey } = await modalHandler.onSubmit();
|
||||
|
||||
if (this.unique) {
|
||||
// TODO: how do we want to generate these urls?
|
||||
history.pushState(null, '', `section/content/workspace/document/create/${this.unique}/${documentTypeKey}`);
|
||||
} else {
|
||||
history.pushState(null, '', `section/content/workspace/document/create/null/${documentTypeKey}`);
|
||||
}
|
||||
// TODO: how do we want to generate these urls?
|
||||
history.pushState(
|
||||
null,
|
||||
'',
|
||||
`section/content/workspace/document/create/${this.unique ?? 'null'}/${documentTypeKey}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user