notifications: rename alert to pin and unpin
This commit is contained in:
+2
-2
@@ -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, {});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user