UI: explicitly pass dismissable

This commit is contained in:
Pieter Vander Vennet 2024-09-04 02:51:21 +02:00
parent facba1e1a2
commit 9a907ea94a
2 changed files with 3 additions and 2 deletions

View file

@ -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">

View file

@ -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}>