aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-02-16 22:27:10 +0100
committerRoger Braun <roger@rogerbraun.net>2017-02-16 22:27:10 +0100
commit0be2051588a8da939c329af0704a75ea09fae410 (patch)
tree28424d21ff86ccb31f05552ba076b5c96b345e10 /src/App.js
parent34bc38f0bf76a9add53652f5a7442be4f7fe9851 (diff)
parentce5b3d4c924d6e94b6fbde3c50fdb209e4ec1fab (diff)
Merge branch 'develop' of ssh.gitgud.io:lambadalambda/pleroma-fe into develop
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/App.js b/src/App.js
index 03421c62..4b0e81d0 100644
--- a/src/App.js
+++ b/src/App.js
@@ -14,7 +14,11 @@ 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
+ },
+ logoStyle () { return { 'background-image': `url(${this.$store.state.config.logo})` } },
+ style () { return { 'background-image': `url(${this.background})` } },
sitename () { return this.$store.state.config.name }
},
methods: {