aboutsummaryrefslogtreecommitdiff
path: root/src/components/chat_panel/chat_panel.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2018-04-11 00:17:05 +0300
committershpuld <shp@cock.li>2018-04-11 00:17:05 +0300
commitf69a12a912d425c9d2b4a456a0cbbb2378babd44 (patch)
tree3deb859f1672b9526a27e97e6f5c98ca450240fb /src/components/chat_panel/chat_panel.js
parent716e37d95cd463ede4a5fbe91e7170515719a0fe (diff)
Make chat collapsable and expandable, make chat look a tiny bit nicer (still works like crap when it comes to scrolling)
Diffstat (limited to 'src/components/chat_panel/chat_panel.js')
-rw-r--r--src/components/chat_panel/chat_panel.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/chat_panel/chat_panel.js b/src/components/chat_panel/chat_panel.js
index b146c5d9..afde7352 100644
--- a/src/components/chat_panel/chat_panel.js
+++ b/src/components/chat_panel/chat_panel.js
@@ -2,7 +2,8 @@ const chatPanel = {
data () {
return {
currentMessage: '',
- channel: null
+ channel: null,
+ collapsed: false
}
},
computed: {
@@ -12,8 +13,12 @@ const chatPanel = {
},
methods: {
submit (message) {
+ console.log(this.currentMessage)
this.$store.state.chat.channel.push('new_msg', {text: message}, 10000)
this.currentMessage = ''
+ },
+ togglePanel () {
+ this.collapsed = !this.collapsed
}
}
}