commit: 17d7617a0c1146e9bf77a5d484acb747fbb5c7b5
parent: 72877b5c06dd46f7334029664175fabd4e7e16ab
Author: Roger Braun <roger@rogerbraun.net>
Date: Thu, 3 Nov 2016 16:58:32 +0100
Add background image.
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git 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
@@ -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})` } }
}
}