pleroma-fe/src/components/user_profile/user_profile.js
2016-11-30 23:32:22 +01:00

17 lines
353 B
JavaScript

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