Disable reset button if SMTP not configured
This commit is contained in:
parent
bcf3e1ef1d
commit
0e61fe34e0
|
@ -68,7 +68,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function clearSmtp() {
|
async function deleteSmtp() {
|
||||||
// Delete the SMTP config
|
// Delete the SMTP config
|
||||||
try {
|
try {
|
||||||
await API.deleteConfig({
|
await API.deleteConfig({
|
||||||
|
@ -178,7 +178,13 @@
|
||||||
</Layout>
|
</Layout>
|
||||||
<div class="spectrum-ButtonGroup spectrum-Settings-buttonGroup">
|
<div class="spectrum-ButtonGroup spectrum-Settings-buttonGroup">
|
||||||
<Button cta on:click={saveSmtp}>Save</Button>
|
<Button cta on:click={saveSmtp}>Save</Button>
|
||||||
<Button secondary on:click={clearSmtp}>Clear</Button>
|
<Button
|
||||||
|
secondary
|
||||||
|
on:click={deleteSmtp}
|
||||||
|
disabled={!$admin.checklist.smtp.checked}
|
||||||
|
>
|
||||||
|
Reset
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<Divider />
|
<Divider />
|
||||||
<Layout gap="XS" noPadding>
|
<Layout gap="XS" noPadding>
|
||||||
|
|
Loading…
Reference in New Issue