This commit is contained in:
Mads Rasmussen
2024-03-01 16:11:56 +01:00
parent 22a0235a4a
commit 6b8340ff53
2 changed files with 6 additions and 2 deletions

View File

@@ -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}`,
);
}
}

View File

@@ -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);
}