Fix more stuff, particularly event handlers

This commit is contained in:
Jon Staab
2025-02-03 17:21:46 -08:00
parent 8d3433b167
commit 24045a7e2a
150 changed files with 424 additions and 392 deletions
+3 -3
View File
@@ -14,7 +14,7 @@
confirm: any
}
let {title = "Are you sure?", subtitle = "", message, confirm}: Props = $props()
const {subtitle = "", message, confirm, ...restProps}: Props = $props()
let loading = $state(false)
@@ -34,7 +34,7 @@
<form class="column gap-4" onsubmit={preventDefault(tryConfirm)}>
<ModalHeader>
{#snippet title()}
<div>{title}</div>
<div>{restProps.title || "Are you sure?"}</div>
{/snippet}
{#snippet info()}
<div>{subtitle}</div>
@@ -42,7 +42,7 @@
</ModalHeader>
<p>{message}</p>
<ModalFooter>
<Button class="btn btn-link" on:click={back}>
<Button class="btn btn-link" onclick={back}>
<Icon icon="alt-arrow-left" />
Go back
</Button>