mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
default message when no notifications
This commit is contained in:
@ -722,9 +722,11 @@ export const showNotificationMessages = (dom) => {
|
||||
dom.empty()
|
||||
$("#chat-notification-number")
|
||||
if (data.totalMessages > 0) {
|
||||
$("#chat-message-notification-title").addClass("d-none")
|
||||
$("#chat-notification-number").removeClass("d-none")
|
||||
$("#chat-notification-number").text(data.totalMessages ?? 0)
|
||||
} else {
|
||||
$("#chat-message-notification-title").removeClass("d-none")
|
||||
$("#chat-notification-number").addClass("d-none")
|
||||
$("#chat-notification-number").text(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user