Move chat to sidebar.
This commit is contained in:
parent
1c067f8562
commit
92289e545a
8 changed files with 29 additions and 23 deletions
|
@ -1,21 +0,0 @@
|
|||
const chat = {
|
||||
data () {
|
||||
return {
|
||||
currentMessage: '',
|
||||
channel: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
messages () {
|
||||
return this.$store.state.chat.messages
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submit (message) {
|
||||
this.$store.state.chat.channel.push('new_msg', {text: message}, 10000)
|
||||
this.currentMessage = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default chat
|
Loading…
Add table
Add a link
Reference in a new issue