notifications: rename alert to pin and unpin

This commit is contained in:
Girish Ramakrishnan
2024-12-11 15:47:41 +01:00
parent ead419003b
commit 746e694d7e
7 changed files with 112 additions and 71 deletions
+2 -2
View File
@@ -1210,8 +1210,8 @@ async function resolveList(listName, listDomain) {
async function checkStatus() {
const result = await checkConfiguration();
if (result.status) {
await notifications.clearAlert(notifications.TYPE_MAIL_STATUS, 'Email is not configured properly');
await notifications.unpin(notifications.TYPE_MAIL_STATUS, {});
} else {
await notifications.alert(notifications.TYPE_MAIL_STATUS, 'Email is not configured properly', result.message, { persist: true });
await notifications.pin(notifications.TYPE_MAIL_STATUS, 'Email is not configured properly', result.message, {});
}
}