diff options
| author | Shpuld Shpludson <shp@cock.li> | 2018-04-11 03:37:42 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2018-04-11 03:37:42 +0000 |
| commit | 748e01d3e966f94aad7c28478363d5b84e4e9977 (patch) | |
| tree | e702216f1f1b2aeb9ad5664eedc1567f2ba7f166 /src/components/chat_panel/chat_panel.js | |
| parent | 020d2f83f9fe2290bd74dd118f7e796a415439a4 (diff) | |
| parent | 2258c9c1e7a2d8d6919e2514b5a8cdda74a4468e (diff) | |
Merge branch 'feature/chat-styling-and-hiding' into 'develop'
Feature/chat styling and hiding
See merge request pleroma/pleroma-fe!224
Diffstat (limited to 'src/components/chat_panel/chat_panel.js')
| -rw-r--r-- | src/components/chat_panel/chat_panel.js | 6 |
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 } } } |
