- ${this.#renderViews()} ${this.view === 'clipboard' ? this.#renderClipboard() : this.#renderCreateEmpty()}
+ ${this.#renderViews()} ${this.openClipboard ? this.#renderClipboard() : this.#renderCreateEmpty()}
- (this.view = 'createEmpty')}>
+ (this.openClipboard = false)}>
Create Empty
- (this.view = 'clipboard')}>
+ (this.openClipboard = true)}>
Clipboard
diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block/modals/block-catalogue/block-catalogue-modal.token.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block/modals/block-catalogue/block-catalogue-modal.token.ts
index 1b842c20f3..1dda60f105 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/block/block/modals/block-catalogue/block-catalogue-modal.token.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/block/block/modals/block-catalogue/block-catalogue-modal.token.ts
@@ -4,11 +4,9 @@ import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
export interface UmbBlockCatalogueModalData {
blocks: Array;
blockGroups?: Array<{ name: string; key: string }>;
- view?: UmbBlockCatalogueView;
+ openClipboard?: boolean;
}
-export type UmbBlockCatalogueView = 'clipboard' | 'createEmpty';
-
export interface UmbBlockCatalogueModalValue {
key: string;
}