mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 09:55:47 +01:00
Replace notifications icons from fa-circle to fa-bell
We should change this icon to utilize the icons better.
This commit is contained in:
@@ -106,13 +106,13 @@
|
|||||||
notifList.appendChild(notifFrag);
|
notifList.appendChild(notifFrag);
|
||||||
|
|
||||||
if (data.unread.length > 0) {
|
if (data.unread.length > 0) {
|
||||||
notifIcon.className = 'fa fa-circle active';
|
notifIcon.className = 'fa fa-bell active';
|
||||||
} else {
|
} else {
|
||||||
notifIcon.className = 'fa fa-circle-o';
|
notifIcon.className = 'fa fa-bell-o';
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.emit('api:notifications.mark_all_read', null, function() {
|
socket.emit('api:notifications.mark_all_read', null, function() {
|
||||||
notifIcon.className = 'fa fa-circle-o';
|
notifIcon.className = 'fa fa-bell-o';
|
||||||
utils.refreshTitle();
|
utils.refreshTitle();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
socket.on('event:new_notification', function() {
|
socket.on('event:new_notification', function() {
|
||||||
document.querySelector('.notifications a i').className = 'fa fa-circle active';
|
document.querySelector('.notifications a i').className = 'fa fa-bell active';
|
||||||
app.alert({
|
app.alert({
|
||||||
alert_id: 'new_notif',
|
alert_id: 'new_notif',
|
||||||
title: 'New notification',
|
title: 'New notification',
|
||||||
@@ -169,4 +169,4 @@
|
|||||||
require(['mobileMenu'], function(mobileMenu) {
|
require(['mobileMenu'], function(mobileMenu) {
|
||||||
mobileMenu.init();
|
mobileMenu.init();
|
||||||
});
|
});
|
||||||
}());
|
}());
|
||||||
|
|||||||
Reference in New Issue
Block a user