Update create.action.ts

This commit is contained in:
Mads Rasmussen
2024-03-02 21:28:02 +01:00
parent b4faae9af4
commit acc5ef68b2

View File

@@ -7,11 +7,13 @@ export class UmbPartialViewCreateOptionsEntityAction extends UmbEntityActionBase
if (!this.repository) throw new Error('Repository is not available');
const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT);
modalManager.open(this, UMB_PARTIAL_VIEW_CREATE_OPTIONS_MODAL, {
const modalContext = modalManager.open(this, UMB_PARTIAL_VIEW_CREATE_OPTIONS_MODAL, {
data: {
parentUnique: this.unique,
entityType: this.entityType,
},
});
await modalContext.onSubmit();
}
}