Skip to content
Snippets Groups Projects
Commit 043e14d5 authored by eal's avatar eal
Browse files

Show chat only if channel is joined.

parent 3ff39f9b
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ export default {
logoStyle () { return { 'background-image': `url(${this.$store.state.config.logo})` } },
style () { return { 'background-image': `url(${this.background})` } },
sitename () { return this.$store.state.config.name },
chat () { return this.$store.state.chat.channel }
chat () { return this.$store.state.chat.channel.state === 'joined' }
},
methods: {
activatePanel (panelName) {
......
const chat = {
state: {
messages: [],
channel: null
channel: {state: ''}
},
mutations: {
setChannel (state, channel) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment