From 1768236be55a9d10f43455962ce8312b5e53fdd3 Mon Sep 17 00:00:00 2001 From: Nikita Konev Date: Sun, 10 Dec 2023 06:31:13 +0400 Subject: [PATCH] Fix non-changing green tube button onto red in case user accepts tet-a-tet call by clicking on blinking snackbar --- frontend/src/ChatView.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/src/ChatView.vue b/frontend/src/ChatView.vue index b4e020897..b5ddbedb8 100644 --- a/frontend/src/ChatView.vue +++ b/frontend/src/ChatView.vue @@ -538,8 +538,11 @@ export default { await this.onProfileSet(); } - this.chatStore.showCallButton = true; - this.chatStore.showHangButton = false; + console.log(">>>>>>>>>>>>>>", this.$route) + if (this.$route.name == chat_name) { // not to change in case we enter to call by clicking on blinking snackbar + this.chatStore.showCallButton = true; + this.chatStore.showHangButton = false; + } bus.on(PROFILE_SET, this.onProfileSet); bus.on(LOGGED_OUT, this.onLogout); @@ -587,8 +590,12 @@ export default { setTitle(null); this.chatStore.avatar = null; this.chatStore.showGoToBlogButton = null; - this.chatStore.showCallButton = false; - this.chatStore.showHangButton = false; + + if (this.$route.name == chat_name) { // not to change in case we enter to call by clicking on blinking snackbar + this.chatStore.showCallButton = false; + this.chatStore.showHangButton = false; + } + this.chatStore.isShowSearch = false; this.chatStore.chatUsersCount = 0;