negate boolean

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

View File

@ -16,7 +16,7 @@
const disabled = {
SEND_EMAIL_SMTP: {
disabled: $admin.checklist.smtp.checked,
disabled: !$admin.checklist.smtp.checked,
message: "Please configure SMTP",
},
}
@ -101,12 +101,12 @@
<div class="item-list">
{#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">
<div
class="item"
class:selected={selectedAction === action.name}
class:disabled={disabled[idx]}
class:disabled={true}
on:click={() => selectAction(action)}
>
<div class="item-body">