Add background image.

This commit is contained in:
Roger Braun 2016-11-03 16:58:32 +01:00
parent 72877b5c06
commit 17d7617a0c
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<div id="app"> <div id="app" v-bind:style="style">
<nav class='container'> <nav class='container'>
<div class='item'> <div class='item'>
<a route-to='friends-timeline' href="#">Pleroma FE</a> <a route-to='friends-timeline' href="#">Pleroma FE</a>

View File

@ -4,5 +4,9 @@ export default {
name: 'app', name: 'app',
components: { components: {
UserPanel UserPanel
},
computed: {
user () { return this.$store.state.users.currentUser || {} },
style () { return { 'background-image': `url(${this.user.background_image})` } }
} }
} }