fix url
This commit is contained in:
@@ -10,6 +10,10 @@ export class UmbCreateRelationTypeEntityAction extends UmbEntityActionBase<UmbRe
|
||||
|
||||
async execute() {
|
||||
// TODO: Generate the href or retrieve it from something?
|
||||
history.pushState(null, '', `section/settings/workspace/relation-type/create/${this.unique ?? null}`);
|
||||
history.pushState(
|
||||
null,
|
||||
'',
|
||||
`section/settings/workspace/relation-type/create/parent/${this.entityType}/${this.unique}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ export class UmbCreateEntityAction<T extends { copy(): Promise<void> }> extends
|
||||
}
|
||||
|
||||
async execute() {
|
||||
const url = `section/settings/workspace/template/create/${this.unique || 'null'}`;
|
||||
const url = `section/settings/workspace/template/create/parent/${this.entityType}/${this.unique || 'null'}`;
|
||||
// TODO: how do we handle this with a href?
|
||||
history.pushState(null, '', url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user