diff options
| author | Henry Jameson <me@hjkos.com> | 2018-09-09 22:02:22 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-09-17 17:51:39 +0300 |
| commit | 136add8a2fb80859ac6c2b160bf29e51117f8cff (patch) | |
| tree | 0c5be9083796fc2bf4abbed3dbba6678bb722049 | |
| parent | 1245d7917f0f0172c09ab6e0c5fff0a1aed67784 (diff) | |
fix some missing stuff
| -rw-r--r-- | src/App.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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' }, |
