negate boolean
This commit is contained in:
parent
1286df17a9
commit
f8e859e7de
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue