Fix a modal

This commit is contained in:
Jon Staab 2026-02-06 16:27:57 -08:00
parent 7e7aba06a6
commit 3bd126c11d

View file

@ -6,6 +6,8 @@
import BellOff from "@assets/icons/bell-off.svg?dataurl" import BellOff from "@assets/icons/bell-off.svg?dataurl"
import Icon from "@lib/components/Icon.svelte" import Icon from "@lib/components/Icon.svelte"
import Button from "@lib/components/Button.svelte" import Button from "@lib/components/Button.svelte"
import Modal from "@lib/components/Modal.svelte"
import ModalBody from "@lib/components/ModalBody.svelte"
import ChatStart from "@app/components/ChatStart.svelte" import ChatStart from "@app/components/ChatStart.svelte"
import {setChecked} from "@app/util/notifications" import {setChecked} from "@app/util/notifications"
import {pushModal} from "@app/util/modal" import {pushModal} from "@app/util/modal"
@ -23,7 +25,8 @@
const disableAlerts = () => notificationSettings.update(assoc("messages", false)) const disableAlerts = () => notificationSettings.update(assoc("messages", false))
</script> </script>
<div class="col-2"> <Modal>
<ModalBody>
<Button class="btn btn-primary" onclick={startChat}> <Button class="btn btn-primary" onclick={startChat}>
<Icon size={5} icon={ChatSquare} /> <Icon size={5} icon={ChatSquare} />
Start chat Start chat
@ -43,4 +46,5 @@
Enable alerts Enable alerts
</Button> </Button>
{/if} {/if}
</div> </ModalBody>
</Modal>