aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-12-16 18:25:07 +0200
committerHenry Jameson <me@hjkos.com>2020-12-16 18:25:07 +0200
commitc1977567677385bef3f27ba0f8d20e13e07cd9e9 (patch)
treeabec6b92fb8be93d96b8211800d0676454bd84e5 /src/App.js
parent674c30235020d48b3b852d36f16198978ea4dc88 (diff)
Basic no-wallpaper support
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/App.js b/src/App.js
index 52700319..c79184ab 100644
--- a/src/App.js
+++ b/src/App.js
@@ -54,13 +54,16 @@ export default {
return this.currentUser.background_image || this.$store.state.instance.background
},
bgStyle () {
- return {
- 'background-image': `url(${this.background})`
- }
- },
- bgAppStyle () {
- return {
- '--body-background-image': `url(${this.background})`
+ if (
+ this.currentUser.background_image ||
+ (
+ this.$store.state.instance.background &&
+ !this.$store.getters.mergedConfig.hideInstanceWallpaper
+ )
+ ) {
+ return {
+ '--body-background-image': `url(${this.background})`
+ }
}
},
chat () { return this.$store.state.chat.channel.state === 'joined' },