Fix notifications low verbosity does not stop ringing bell animation after notification being deleted or all being deleted

This commit is contained in:
Hadi Nategh 2021-04-23 13:02:14 +02:00
parent 5fd83ae3eb
commit 8efb4381fa

View File

@ -578,6 +578,7 @@
notifymessages = {};
jQuery("#egwpopup_list").empty();
egw.loading_prompt('popup_notifications', false);
this.bell("inactive");
};
/**
@ -752,7 +753,10 @@
switch(egw.preference('egwpopup_verbosity', 'notifications'))
{
case 'low':
this.bell('active');
if (Object.keys(notifymessages).length>0 && this.counterUpdate()>0)
{
this.bell('active');
}
break;
case 'high':
if (hasUnseen.length > 0)
@ -850,6 +854,7 @@
/**
* Set new state of notifications counter
* @return number of new messages
*/
notifications.prototype.counterUpdate = function ()
{
@ -890,6 +895,7 @@
{
framework.topmenu_info_notify('notifications', false);
}
return counter;
};
var lab = egw_LAB || $LAB;