Make chat collapsable and expandable, make chat look a tiny bit nicer (still works like crap when it comes to scrolling)
This commit is contained in:
parent
716e37d95c
commit
f69a12a912
2 changed files with 46 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue