UI: explicitly pass dismissable
This commit is contained in:
parent
facba1e1a2
commit
9a907ea94a
2 changed files with 3 additions and 2 deletions
|
@ -25,6 +25,7 @@
|
|||
headerClass = "hidden"
|
||||
}
|
||||
export let shown: UIEventSource<boolean>
|
||||
export let dismissable = true
|
||||
let _shown = false
|
||||
shown.addCallbackAndRun(sh => {
|
||||
_shown = sh
|
||||
|
@ -36,7 +37,7 @@
|
|||
|
||||
<Modal open={_shown} on:close={() => shown.set(false)} outsideclose
|
||||
size="xl"
|
||||
dismissable={false}
|
||||
{dismissable}
|
||||
{defaultClass} {bodyClass} {dialogClass} {headerClass}
|
||||
color="none">
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
}))
|
||||
</script>
|
||||
|
||||
<Popup shown={showBigPreview} bodyPadding="p-0">
|
||||
<Popup shown={showBigPreview} bodyPadding="p-0" dismissable={true}>
|
||||
<div slot="close" />
|
||||
<div style="height: 80vh">
|
||||
<ImageOperations {image}>
|
||||
|
|
Loading…
Reference in a new issue