Skip to content

Commit

Permalink
fix: email save toast shows two times
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Nov 28, 2024
1 parent a9f4dad commit f2bfc73
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</script>

<form onsubmit={onSubmit}>
<div class="mt-5 grid grid-cols-1 gap-5 md:grid-cols-2 items-start">
<div class="mt-5 grid grid-cols-1 items-start gap-5 md:grid-cols-2">
<FormInput label="SMTP Host" bind:input={$inputs.smtpHost} />
<FormInput label="SMTP Port" type="number" bind:input={$inputs.smtpPort} />
<FormInput label="SMTP User" bind:input={$inputs.smtpUser} />
Expand All @@ -106,8 +106,7 @@
<Button isLoading={isSendingTestEmail} variant="secondary" onclick={onTestEmail}
>Send Test Email</Button
>

<Button onclick={onSubmit} type="submit">Save</Button>
<Button type="submit">Save</Button>
{:else}
<Button onclick={onEnable}>Enable</Button>
{/if}
Expand Down

0 comments on commit f2bfc73

Please sign in to comment.