Remove lingering mentions of block ejection
This commit is contained in:
parent
bae76a5d5c
commit
d45cfc3564
1 changed files with 0 additions and 13 deletions
|
@ -7,9 +7,7 @@
|
||||||
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
||||||
|
|
||||||
let confirmDeleteDialog
|
let confirmDeleteDialog
|
||||||
let confirmEjectDialog
|
|
||||||
let componentToDelete
|
let componentToDelete
|
||||||
let componentToEject
|
|
||||||
|
|
||||||
const keyHandlers = {
|
const keyHandlers = {
|
||||||
["^ArrowUp"]: async component => {
|
["^ArrowUp"]: async component => {
|
||||||
|
@ -31,10 +29,6 @@
|
||||||
store.actions.components.copy(component)
|
store.actions.components.copy(component)
|
||||||
await store.actions.components.paste(component, "below")
|
await store.actions.components.paste(component, "below")
|
||||||
},
|
},
|
||||||
["^e"]: component => {
|
|
||||||
componentToEject = component
|
|
||||||
confirmEjectDialog.show()
|
|
||||||
},
|
|
||||||
["^Enter"]: () => {
|
["^Enter"]: () => {
|
||||||
$goto("./new")
|
$goto("./new")
|
||||||
},
|
},
|
||||||
|
@ -122,10 +116,3 @@
|
||||||
okText="Delete Component"
|
okText="Delete Component"
|
||||||
onOk={() => store.actions.components.delete(componentToDelete)}
|
onOk={() => store.actions.components.delete(componentToDelete)}
|
||||||
/>
|
/>
|
||||||
<ConfirmDialog
|
|
||||||
bind:this={confirmEjectDialog}
|
|
||||||
title="Eject block"
|
|
||||||
body={`Ejecting a block breaks it down into multiple components. Are you sure you want to eject "${componentToEject?._instanceName}"?`}
|
|
||||||
onOk={() => store.actions.components.requestEjectBlock(componentToEject?._id)}
|
|
||||||
okText="Eject block"
|
|
||||||
/>
|
|
||||||
|
|
Loading…
Reference in a new issue