aboutsummaryrefslogtreecommitdiff
path: root/src/components/chat_panel/chat_panel.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/chat_panel/chat_panel.js')
-rw-r--r--src/components/chat_panel/chat_panel.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/chat_panel/chat_panel.js b/src/components/chat_panel/chat_panel.js
index b146c5d9..d528d0a1 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: {
@@ -14,6 +15,9 @@ const chatPanel = {
submit (message) {
this.$store.state.chat.channel.push('new_msg', {text: message}, 10000)
this.currentMessage = ''
+ },
+ togglePanel () {
+ this.collapsed = !this.collapsed
}
}
}