diff options
| author | eal <eal@waifu.club> | 2018-02-01 18:19:36 +0200 |
|---|---|---|
| committer | eal <eal@waifu.club> | 2018-02-01 18:19:36 +0200 |
| commit | 36e68fba961a46fcd6dda1a57471dcf10775c511 (patch) | |
| tree | 21dd7deace28b33296946714dc1c9561c6b4d30c /src/components/chat_panel/chat_panel.js | |
| parent | 90175a1872cace45ae0e410ed283fab25c9e42cd (diff) | |
| parent | 92289e545a62bd28ea336c5d712a05445e0e20ab (diff) | |
Merge branch 'develop' into feature/normal-emoji-completion
Diffstat (limited to 'src/components/chat_panel/chat_panel.js')
| -rw-r--r-- | src/components/chat_panel/chat_panel.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/components/chat_panel/chat_panel.js b/src/components/chat_panel/chat_panel.js new file mode 100644 index 00000000..b146c5d9 --- /dev/null +++ b/src/components/chat_panel/chat_panel.js @@ -0,0 +1,21 @@ +const chatPanel = { + 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 chatPanel |
