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'>
<div class='item'>
<a route-to='friends-timeline' href="#">Pleroma FE</a>

View file

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