From 83a376a25460f029c2f49ebca5509a9add7cdb44 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 30 Nov 2016 22:27:19 +0100 Subject: Extract user card from user content. --- src/components/user_panel/user_panel.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/components/user_panel/user_panel.js') diff --git a/src/components/user_panel/user_panel.js b/src/components/user_panel/user_panel.js index 418c3a6f..15804b88 100644 --- a/src/components/user_panel/user_panel.js +++ b/src/components/user_panel/user_panel.js @@ -1,19 +1,15 @@ import LoginForm from '../login_form/login_form.vue' import PostStatusForm from '../post_status_form/post_status_form.vue' +import UserCardContent from '../user_card_content/user_card_content.vue' const UserPanel = { computed: { - user () { return this.$store.state.users.currentUser }, - style () { - return { - color: `#${this.user.profile_link_color}`, - 'background-image': `url(${this.user.cover_photo})` - } - } + user () { return this.$store.state.users.currentUser } }, components: { LoginForm, - PostStatusForm + PostStatusForm, + UserCardContent } } -- cgit v1.2.3-70-g09d2