summaryrefslogtreecommitdiffstats
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Home.vue8
1 files changed, 6 insertions, 2 deletions
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 @@
25 <Searcher 25 <Searcher
26 v-if="popups.searcher_show" 26 v-if="popups.searcher_show"
27 @close="hideSearcher" 27 @close="hideSearcher"
28 @dissconect_socket="dissconectSocket"
28 @toogle_group_maker="toogleGroupShow" 29 @toogle_group_maker="toogleGroupShow"
29 @group_set="openGroup" 30 @group_set="openGroup"
30 /> 31 />
@@ -57,7 +58,7 @@ export default {
57 this.$store.dispatch('logout') 58 this.$store.dispatch('logout')
58 this.$router.push('/login') 59 this.$router.push('/login')
59 }, 60 },
60 61
61 toogleSearcherShow() { 62 toogleSearcherShow() {
62 this.popups.searcher_show = !this.popups.searcher_show 63 this.popups.searcher_show = !this.popups.searcher_show
63 this.popups.group_maker_show = false 64 this.popups.group_maker_show = false
@@ -65,8 +66,11 @@ export default {
65 hideSearcher() { this.popups.searcher_show = false }, 66 hideSearcher() { this.popups.searcher_show = false },
66 67
67 toogleGroupShow() { this.popups.group_maker_show = !this.popups.group_maker_show }, 68 toogleGroupShow() { this.popups.group_maker_show = !this.popups.group_maker_show },
69
68 hideGroup() { this.popups.group_maker_show = false }, 70 hideGroup() { this.popups.group_maker_show = false },
69 71
72 dissconectSocket() { this.socket.disconnect() },
73
70 openGroup(group) { 74 openGroup(group) {
71 let groups = this.groups.slice() 75 let groups = this.groups.slice()
72 let index = groups.findIndex(o => o.name===group.name) 76 let index = groups.findIndex(o => o.name===group.name)
@@ -132,7 +136,7 @@ export default {
132 }); 136 });
133 137
134 this.socket.on("disconnect", () => { 138 this.socket.on("disconnect", () => {
135 console.log("Scoket dsiconected") 139 console.log("Scoket dsiconected!")
136 }) 140 })
137 141
138 this.socket.on("receive_group_message", async ({message}) => { 142 this.socket.on("receive_group_message", async ({message}) => {