diff --git a/ci4/app/Language/es/Chat.php b/ci4/app/Language/es/Chat.php index 1aca873e..0f130fb1 100644 --- a/ci4/app/Language/es/Chat.php +++ b/ci4/app/Language/es/Chat.php @@ -28,5 +28,6 @@ return [ "add_notification" => "Notificación", "check_as_unviewed" => "Marcar como no leídos", "add_notification_message" => "Envía a los usuarios añadidos una notificación con los mensajes presentes en el chat.", - "chat_title_presupuesto" => 'Presupuesto[{title,string,0}][{id}]' + "chat_title_presupuesto" => 'Presupuesto[{title,string,0}][{id}]', + "no_messages_notification" => 'No hay mensajes que revisar por el momento' ]; \ No newline at end of file diff --git a/ci4/app/Views/themes/vuexy/main/defaultlayout.php b/ci4/app/Views/themes/vuexy/main/defaultlayout.php index 40358745..c2cccd59 100644 --- a/ci4/app/Views/themes/vuexy/main/defaultlayout.php +++ b/ci4/app/Views/themes/vuexy/main/defaultlayout.php @@ -136,8 +136,9 @@ $picture = "/assets/img/default-user.png";
diff --git a/httpdocs/assets/js/safekat/components/chat.js b/httpdocs/assets/js/safekat/components/chat.js index 6099c028..8d0e7f06 100644 --- a/httpdocs/assets/js/safekat/components/chat.js +++ b/httpdocs/assets/js/safekat/components/chat.js @@ -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) }