parent
83a376a254
commit
fcccb9df68
@ -0,0 +1,17 @@
|
|||||||
|
import UserCardContent from '../user_card_content/user_card_content.vue'
|
||||||
|
import { find } from 'lodash'
|
||||||
|
|
||||||
|
const UserProfile = {
|
||||||
|
computed: {
|
||||||
|
user () {
|
||||||
|
const id = this.$route.params.id
|
||||||
|
const user = find(this.$store.state.users.users, {id})
|
||||||
|
return user
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
UserCardContent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default UserProfile
|
@ -0,0 +1,14 @@
|
|||||||
|
<template>
|
||||||
|
<div class="user-profile panel panel-default">
|
||||||
|
<user-card-content :user="user"></user-card-content>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script src="./user_profile.js"></script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.user-profile {
|
||||||
|
flex: 2;
|
||||||
|
flex-basis: 500px;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in new issue