Ensure admin store checklist is optional

This commit is contained in:
Andrew Kingston 2024-12-12 14:58:55 +00:00
parent 512d87ac36
commit 3dfdb740ac
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@
const disabled = () => { const disabled = () => {
return { return {
SEND_EMAIL_SMTP: { SEND_EMAIL_SMTP: {
disabled: !$admin.checklist.smtp.checked, disabled: !$admin.checklist?.smtp?.checked,
message: "Please configure SMTP", message: "Please configure SMTP",
}, },
COLLECT: { COLLECT: {

View File

@ -9,7 +9,7 @@
$: useAccountPortal = cloud && !$admin.disableAccountPortal $: useAccountPortal = cloud && !$admin.disableAccountPortal
onMount(() => { onMount(() => {
if ($admin?.checklist?.adminUser.checked || useAccountPortal) { if ($admin?.checklist?.adminUser?.checked || useAccountPortal) {
$redirect("../") $redirect("../")
} else { } else {
loaded = true loaded = true

View File

@ -177,7 +177,7 @@
<Button <Button
secondary secondary
on:click={deleteSmtp} on:click={deleteSmtp}
disabled={!$admin.checklist.smtp.checked} disabled={!$admin.checklist?.smtp?.checked}
> >
Reset Reset
</Button> </Button>