diff --git a/src/App.html b/src/App.html index 1b067684..f80797e1 100644 --- a/src/App.html +++ b/src/App.html @@ -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> diff --git a/src/App.js b/src/App.js index 48284b4c..3c677566 100644 --- a/src/App.js +++ b/src/App.js @@ -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})` } } } }