Extract user card from user content.
This commit is contained in:
parent
dcb9a5fa17
commit
83a376a254
3 changed files with 49 additions and 34 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue