Email notifications: settings UI + mail adapter #4

Open
hudson wants to merge 27 commits from email-notifications into dev
Showing only changes of commit 49df66a58a - Show all commits

View file

@ -61,15 +61,12 @@
await Mail.enable()
} catch (e) {
settings.email = false
console.error(e)
await sleep(300)
return pushToast({
theme: "error",
message: `Failed to enable email notifications.`,
action: {
message: "Details",
onclick: () =>
emailNotificationState.set({...emailNotificationState.get(), error: undefined}),
},
action: {message: "Details", onclick: () => {}},
})
}
} else if (!settings.email) {
@ -198,7 +195,7 @@
</FieldInline>
{/if}
{#if $emailNotificationState.error}
<div class="text-sm text-red-500 bg-red-50 rounded-lg p-3">
<div class="text-sm text-error p-3">
{$emailNotificationState.error}
</div>
{/if}