This commit is contained in:
Niels Lyngsø
2024-01-12 10:42:10 +01:00
parent 933856c588
commit 8adfe55e81
2 changed files with 2 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ export class UmbInputBlockTypeElement<BlockType extends UmbBlockTypeBase = UmbBl
this.#blockTypeWorkspaceModalRegistration?.destroy();
if (entityType) {
// TODO: Make specific modal token that requires data.
this.#blockTypeWorkspaceModalRegistration = new UmbModalRouteRegistrationController(this, UMB_WORKSPACE_MODAL)
.addAdditionalPath(entityType)
.onSetup(() => {

View File

@@ -1,6 +1,7 @@
import { CreateDataTypeRequestModel } from '@umbraco-cms/backoffice/backend-api';
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
// TODO: Change model:
export interface UmbWorkspaceData {
entityType: string;
preset: Partial<CreateDataTypeRequestModel>;