diff --git a/ci4/app/Views/themes/vuexy/main/defaultlayout.php b/ci4/app/Views/themes/vuexy/main/defaultlayout.php
index 0efeba1a..b4a4a642 100644
--- a/ci4/app/Views/themes/vuexy/main/defaultlayout.php
+++ b/ci4/app/Views/themes/vuexy/main/defaultlayout.php
@@ -280,7 +280,7 @@ $picture = "/assets/img/default-user.png";
- ">
+ ">
= lang("App.menu_logout") ?>
diff --git a/httpdocs/assets/js/safekat/pages/chatNotification.js b/httpdocs/assets/js/safekat/pages/chatNotification.js
index 5a9de17f..333dba83 100644
--- a/httpdocs/assets/js/safekat/pages/chatNotification.js
+++ b/httpdocs/assets/js/safekat/pages/chatNotification.js
@@ -1,10 +1,16 @@
-import {showNotificationMessages} from "../components/chat.js";
+import { showNotificationMessages } from "../components/chat.js";
-showNotificationMessages($("#chat-notification-list"))
+$(() => {
-setInterval(() => {
- showNotificationMessages($("#chat-notification-list"))
-},10000)
-$("#message-notification-dropdown").on("click",(e) => {
showNotificationMessages($("#chat-notification-list"))
+ const chatNotificationInterval = setInterval(() => {
+ showNotificationMessages($("#chat-notification-list"))
+ }, 10000)
+ $("#message-notification-dropdown").on("click", (e) => {
+ showNotificationMessages($("#chat-notification-list"))
+ })
+ $("#btn-log-out").on("click",() => {
+ clearInterval(chatNotificationInterval)
+ console.log("CLEAR")
+ })
})
\ No newline at end of file