From 4d67ddc7af31cc8c73139e6f889a6f6832027b10 Mon Sep 17 00:00:00 2001 From: saschrad <saschrad@stud.ntnu.no> Date: Wed, 4 May 2022 22:29:48 +0200 Subject: [PATCH] Removed notification when on messages page --- src/components/BaseComponents/NavBar.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/BaseComponents/NavBar.vue b/src/components/BaseComponents/NavBar.vue index eaf89a1..e5cf16d 100644 --- a/src/components/BaseComponents/NavBar.vue +++ b/src/components/BaseComponents/NavBar.vue @@ -84,6 +84,7 @@ export default { }, created() { ws.on('NEW_MESSAGE', () => { + if(this.$router.currentRoute.value.name == 'messages') return; this.newMessages += 1; }, "header"); } -- GitLab