1
0
Fork 0
mirror of synced 2024-07-04 22:11:23 +12:00

Disable eject for blocks if ejectable has been set to false

This commit is contained in:
Dean 2024-01-10 14:52:16 +00:00
parent c0bd897b15
commit 47e04c363c

View file

@ -7,6 +7,7 @@
$: definition = store.actions.components.getDefinition(component?._component)
$: noPaste = !$store.componentToPaste
$: isBlock = definition?.block === true
$: canEject = !(definition?.ejectable === false)
const keyboardEvent = (key, ctrlKey = false) => {
document.dispatchEvent(
@ -32,7 +33,7 @@
>
Delete
</MenuItem>
{#if isBlock}
{#if isBlock && canEject}
<MenuItem
icon="Export"
keyBind="Ctrl+E"