From 83a376a25460f029c2f49ebca5509a9add7cdb44 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 30 Nov 2016 22:27:19 +0100 Subject: [PATCH] Extract user card from user content. --- .../user_card_content/user_card_content.vue | 43 +++++++++++++++++++ src/components/user_panel/user_panel.js | 12 ++---- src/components/user_panel/user_panel.vue | 28 +----------- 3 files changed, 49 insertions(+), 34 deletions(-) create mode 100644 src/components/user_card_content/user_card_content.vue diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue new file mode 100644 index 0000000000..7ad86e63e3 --- /dev/null +++ b/src/components/user_card_content/user_card_content.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/components/user_panel/user_panel.js b/src/components/user_panel/user_panel.js index 418c3a6ff2..15804b8847 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 } } diff --git a/src/components/user_panel/user_panel.vue b/src/components/user_panel/user_panel.vue index 6b986f8466..8ecf1391d3 100644 --- a/src/components/user_panel/user_panel.vue +++ b/src/components/user_panel/user_panel.vue @@ -1,32 +1,8 @@