pleroma-fe/src/components/user_profile/user_profile.js

18 lines
353 B
JavaScript
Raw Normal View History

2016-11-30 23:32:22 +01:00
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