Clear the correct mail status notification

This commit is contained in:
Johannes Zellner
2023-06-29 11:35:07 +02:00
parent a3649ea039
commit d2b39351b8

View File

@@ -193,7 +193,7 @@ async function runSystemChecks() {
async function checkMailStatus() {
const result = await mail.checkConfiguration();
if (result.status) {
await notifications.clearAlert(notifications.ALERT_REBOOT, 'Email is not configured properly');
await notifications.clearAlert(notifications.ALERT_MAIL_STATUS, 'Email is not configured properly');
} else {
await notifications.alert(notifications.ALERT_MAIL_STATUS, 'Email is not configured properly', result.message, { persist: true });
}