Email notifications: settings UI + mail adapter #4
1 changed files with 11 additions and 0 deletions
|
|
@ -148,6 +148,17 @@
|
|||
|
||||
let loading = $state(false)
|
||||
let settings = $state(buildSettings())
|
||||
let settingsHydrated = $state(false)
|
||||
|
||||
$effect(() => {
|
||||
if (settingsHydrated) return
|
||||
|
||||
const {email, emailAddress} = $userSettingsValues
|
||||
if (!email && !emailAddress) return
|
||||
|
||||
settingsHydrated = true
|
||||
settings = buildSettings()
|
||||
})
|
||||
</script>
|
||||
|
||||
<form {onsubmit}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue