Merge branch 'fix/chat-visibility' into 'develop'

Show chat only if channel is joined.

See merge request pleroma/pleroma-fe!197
This commit is contained in:
lambda 2018-02-02 07:31:17 +00:00
commit 8010c42768
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -1,7 +1,7 @@
const chat = {
state: {
messages: [],
channel: null
channel: {state: ''}
},
mutations: {
setChannel (state, channel) {