negate boolean

This commit is contained in:
Peter Clement 2021-10-21 16:38:15 +01:00
parent f3990b70e2
commit 2c27a5e7bb
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
const disabled = { const disabled = {
SEND_EMAIL_SMTP: { SEND_EMAIL_SMTP: {
disabled: $admin.checklist.smtp.checked, disabled: !$admin.checklist.smtp.checked,
message: "Please configure SMTP", message: "Please configure SMTP",
}, },
} }
@ -101,12 +101,12 @@
<div class="item-list"> <div class="item-list">
{#each Object.entries(internal) as [idx, action]} {#each Object.entries(internal) as [idx, action]}
{#if disabled[idx] && !disabled[idx].disabled} {#if disabled[idx] && disabled[idx].disabled}
<Tooltip text={disabled[idx].message} direction="bottom"> <Tooltip text={disabled[idx].message} direction="bottom">
<div <div
class="item" class="item"
class:selected={selectedAction === action.name} class:selected={selectedAction === action.name}
class:disabled={disabled[idx]} class:disabled={true}
on:click={() => selectAction(action)} on:click={() => selectAction(action)}
> >
<div class="item-body"> <div class="item-body">