From bc78028cd869f067ce3c8a8af4bf0a6399ac5067 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Sun, 5 Jun 2022 12:31:30 +0200 Subject: Repair bug - multiple socket connections --- src/views/Home.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/views') diff --git a/src/views/Home.vue b/src/views/Home.vue index 205a260..5885c7b 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -25,6 +25,7 @@ @@ -57,7 +58,7 @@ export default { this.$store.dispatch('logout') this.$router.push('/login') }, - + toogleSearcherShow() { this.popups.searcher_show = !this.popups.searcher_show this.popups.group_maker_show = false @@ -65,8 +66,11 @@ export default { hideSearcher() { this.popups.searcher_show = false }, toogleGroupShow() { this.popups.group_maker_show = !this.popups.group_maker_show }, + hideGroup() { this.popups.group_maker_show = false }, + dissconectSocket() { this.socket.disconnect() }, + openGroup(group) { let groups = this.groups.slice() let index = groups.findIndex(o => o.name===group.name) @@ -132,7 +136,7 @@ export default { }); this.socket.on("disconnect", () => { - console.log("Scoket dsiconected") + console.log("Scoket dsiconected!") }) this.socket.on("receive_group_message", async ({message}) => { -- cgit v1.2.3