refac: bypass confirm dialog for edit

This commit is contained in:
Timothy J. Baek 2024-06-12 01:22:52 -07:00
parent dd2941bb43
commit 326ac41422

View File

@ -57,7 +57,11 @@
bind:this={formElement} bind:this={formElement}
class=" flex flex-col max-h-[100dvh] h-full" class=" flex flex-col max-h-[100dvh] h-full"
on:submit|preventDefault={() => { on:submit|preventDefault={() => {
if (edit) {
submitHandler();
} else {
showConfirm = true; showConfirm = true;
}
}} }}
> >
<div class="mb-2.5"> <div class="mb-2.5">