"examples/vscode:/vscode.git/clone" did not exist on "d1b1e7b311380d9ab0454c85c851d8159aa5b67e"
Commit 326ac414 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac: bypass confirm dialog for edit

parent dd2941bb
...@@ -57,7 +57,11 @@ ...@@ -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">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment