fixes typo, removes unused variables
This commit is contained in:
parent
3201eb5953
commit
a7ec49613c
|
@ -7,11 +7,11 @@
|
|||
export let narrower = false
|
||||
export let noPadding = false
|
||||
|
||||
let sidePanelVisble = false
|
||||
let sidePanelVisible = false
|
||||
|
||||
setContext("side-panel", {
|
||||
open: () => (sidePanelVisble = true),
|
||||
close: () => (sidePanelVisble = false),
|
||||
open: () => (sidePanelVisible = true),
|
||||
close: () => (sidePanelVisible = false),
|
||||
})
|
||||
</script>
|
||||
|
||||
|
@ -24,9 +24,9 @@
|
|||
</div>
|
||||
<div
|
||||
id="side-panel"
|
||||
class:visible={sidePanelVisble}
|
||||
class:visible={sidePanelVisible}
|
||||
use:clickOutside={() => {
|
||||
sidePanelVisble = false
|
||||
sidePanelVisible = false
|
||||
}}
|
||||
>
|
||||
<slot name="side-panel" />
|
||||
|
|
|
@ -6505,7 +6505,7 @@
|
|||
"type": "event",
|
||||
"key": "sidePanelClose",
|
||||
"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 } =
|
||||
getContext("sdk")
|
||||
|
||||
let handlingSidePanelOpen
|
||||
let handlingSidePanelClose
|
||||
|
||||
export let sidePanelOpen
|
||||
export let sidePanelClose
|
||||
export let clickOutsideToClose
|
||||
|
@ -52,19 +49,15 @@
|
|||
}
|
||||
|
||||
const handleSidePanelOpen = async () => {
|
||||
handlingSidePanelOpen = true
|
||||
if (sidePanelOpen) {
|
||||
await sidePanelOpen()
|
||||
}
|
||||
handlingSidePanelOpen = false
|
||||
}
|
||||
|
||||
const handleSidePanelClose = async () => {
|
||||
handlingSidePanelClose = true
|
||||
if (sidePanelClose) {
|
||||
await sidePanelClose()
|
||||
}
|
||||
handlingSidePanelOpen = false
|
||||
}
|
||||
|
||||
const showInSidePanel = (el, visible) => {
|
||||
|
|
Loading…
Reference in New Issue