Dont do full page reload when creating language from the entity action button

This commit is contained in:
Jesper Møller Jensen
2023-12-13 11:53:56 +13:00
committed by Jacob Overgaard
parent 877274cac4
commit 0e7fca5363

View File

@@ -8,8 +8,8 @@ export class UmbLanguageCreateEntityAction extends UmbEntityActionBase<UmbLangua
super(host, repositoryAlias, unique);
}
// TODO: Generate the href or retrieve it from something?
async getHref() {
return 'section/settings/workspace/language/create';
async execute() {
// TODO: Generate the href or retrieve it from something?
history.pushState(null, '', `section/settings/workspace/language/create`);
}
}