fix broken create block in workspace experience
This commit is contained in:
@@ -133,6 +133,7 @@ export class UmbBlockGridEntriesContext
|
||||
blockGroups: this._manager?.getBlockGroups() ?? [],
|
||||
openClipboard: routingInfo.view === 'clipboard',
|
||||
originData: { index: index, areaKey: this.#areaKey, parentUnique: this.#parentUnique },
|
||||
createBlockInWorkspace: true,
|
||||
},
|
||||
};
|
||||
})
|
||||
|
||||
@@ -41,6 +41,7 @@ export class UmbBlockRteEntriesContext extends UmbBlockEntriesContext<
|
||||
blockGroups: [],
|
||||
openClipboard: routingInfo.view === 'clipboard',
|
||||
originData: {},
|
||||
createBlockInWorkspace: true,
|
||||
},
|
||||
};
|
||||
})
|
||||
|
||||
@@ -21,7 +21,7 @@ export class UmbBlockTypeCardElement extends UmbLitElement {
|
||||
(x) => x.unique,
|
||||
);
|
||||
|
||||
@property({ type: String, attribute: false })
|
||||
@property({ type: String })
|
||||
href?: string;
|
||||
|
||||
@property({ type: String, attribute: false })
|
||||
|
||||
@@ -140,7 +140,7 @@ export class UmbBlockCatalogueModalElement extends UmbModalBaseElement<
|
||||
.backgroundColor=${block.backgroundColor}
|
||||
.contentElementTypeKey=${block.contentElementTypeKey}
|
||||
@open=${() => this.#chooseBlock(block.contentElementTypeKey)}
|
||||
?href=${this._workspacePath
|
||||
.href=${this._workspacePath
|
||||
? `${this._workspacePath}create/${block.contentElementTypeKey}`
|
||||
: undefined}>
|
||||
</umb-block-type-card>
|
||||
|
||||
Reference in New Issue
Block a user