aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/App.js b/src/App.js
index a58a2bc5..05e3eda3 100644
--- a/src/App.js
+++ b/src/App.js
@@ -36,9 +36,9 @@ export default {
computed: {
currentUser () { return this.$store.state.users.currentUser },
background () {
- return this.currentUser.background_image || this.$store.state.config.background
+ return this.currentUser.background_image || this.$store.state.instance.background
},
- enableMask () { return this.supportsMask && this.$store.state.config.logoMask },
+ enableMask () { return this.supportsMask && this.$store.state.instance.logoMask },
logoStyle () {
return {
'visibility': this.enableMask ? 'hidden' : 'visible'
@@ -46,19 +46,19 @@ export default {
},
logoMaskStyle () {
return this.enableMask ? {
- 'mask-image': `url(${this.$store.state.config.logo})`
+ 'mask-image': `url(${this.$store.state.instance.logo})`
} : {
'background-color': this.enableMask ? '' : 'transparent'
}
},
logoBgStyle () {
return Object.assign({
- 'margin': `${this.$store.state.config.logoMargin} 0`
+ 'margin': `${this.$store.state.instance.logoMargin} 0`
}, this.enableMask ? {} : {
'background-color': this.enableMask ? '' : 'transparent'
})
},
- logo () { return this.$store.state.config.logo },
+ logo () { return this.$store.state.instance.logo },
style () { return { 'background-image': `url(${this.background})` } },
sitename () { return this.$store.state.instance.name },
chat () { return this.$store.state.chat.channel.state === 'joined' },