expose logic

This commit is contained in:
Niels Lyngsø
2024-10-07 13:27:46 +02:00
parent 19b24e266f
commit 2a64195368

View File

@@ -462,6 +462,12 @@ export class UmbBlockWorkspaceContext<LayoutDataType extends UmbBlockLayoutBaseM
this.setIsNew(false);
}
expose() {
const contentKey = this.#layout.value?.contentKey;
if (!contentKey) throw new Error('Cannot expose block that does not exist.');
this.#expose(contentKey);
}
#expose(unique: string) {
const variantId = this.#variantId.getValue();
if (!variantId) {