fixes typo, removes unused variables
This commit is contained in:
parent
3201eb5953
commit
a7ec49613c
|
@ -7,11 +7,11 @@
|
||||||
export let narrower = false
|
export let narrower = false
|
||||||
export let noPadding = false
|
export let noPadding = false
|
||||||
|
|
||||||
let sidePanelVisble = false
|
let sidePanelVisible = false
|
||||||
|
|
||||||
setContext("side-panel", {
|
setContext("side-panel", {
|
||||||
open: () => (sidePanelVisble = true),
|
open: () => (sidePanelVisible = true),
|
||||||
close: () => (sidePanelVisble = false),
|
close: () => (sidePanelVisible = false),
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -24,9 +24,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
id="side-panel"
|
id="side-panel"
|
||||||
class:visible={sidePanelVisble}
|
class:visible={sidePanelVisible}
|
||||||
use:clickOutside={() => {
|
use:clickOutside={() => {
|
||||||
sidePanelVisble = false
|
sidePanelVisible = false
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<slot name="side-panel" />
|
<slot name="side-panel" />
|
||||||
|
|
|
@ -6505,7 +6505,7 @@
|
||||||
"type": "event",
|
"type": "event",
|
||||||
"key": "sidePanelClose",
|
"key": "sidePanelClose",
|
||||||
"label": "Side Panel Close",
|
"label": "Side Panel Close",
|
||||||
"info": "Side panel actions configured here will run after the 'Open side panel' action runs, and are not capable of preventing or stopping it. Any form validation should therefore be done before that action if invoked, and not here."
|
"info": "Side panel actions configured here will run after the 'Open side panel' action runs, and are not capable of preventing or stopping it. Any form validation should therefore be done before that action is invoked, and not here."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
const { styleable, sidePanelStore, builderStore, dndIsDragging } =
|
const { styleable, sidePanelStore, builderStore, dndIsDragging } =
|
||||||
getContext("sdk")
|
getContext("sdk")
|
||||||
|
|
||||||
let handlingSidePanelOpen
|
|
||||||
let handlingSidePanelClose
|
|
||||||
|
|
||||||
export let sidePanelOpen
|
export let sidePanelOpen
|
||||||
export let sidePanelClose
|
export let sidePanelClose
|
||||||
export let clickOutsideToClose
|
export let clickOutsideToClose
|
||||||
|
@ -52,19 +49,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSidePanelOpen = async () => {
|
const handleSidePanelOpen = async () => {
|
||||||
handlingSidePanelOpen = true
|
|
||||||
if (sidePanelOpen) {
|
if (sidePanelOpen) {
|
||||||
await sidePanelOpen()
|
await sidePanelOpen()
|
||||||
}
|
}
|
||||||
handlingSidePanelOpen = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSidePanelClose = async () => {
|
const handleSidePanelClose = async () => {
|
||||||
handlingSidePanelClose = true
|
|
||||||
if (sidePanelClose) {
|
if (sidePanelClose) {
|
||||||
await sidePanelClose()
|
await sidePanelClose()
|
||||||
}
|
}
|
||||||
handlingSidePanelOpen = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const showInSidePanel = (el, visible) => {
|
const showInSidePanel = (el, visible) => {
|
||||||
|
|
Loading…
Reference in New Issue