aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/App.js b/src/App.js
index c326ddfc..736755ea 100644
--- a/src/App.js
+++ b/src/App.js
@@ -16,7 +16,10 @@ export default {
}),
computed: {
currentUser () { return this.$store.state.users.currentUser },
- style () { return { 'background-image': `url(${this.currentUser.background_image})` } },
+ background () {
+ return this.currentUser.background_image || this.$store.state.config.background
+ },
+ style () { return { 'background-image': `url(${this.background})` } },
sitename () { return this.$store.state.config.name }
},
methods: {