diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-30 23:32:22 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-30 23:32:22 +0100 |
| commit | fcccb9df68f0c27890a431a132a2e3e59f1ba80d (patch) | |
| tree | 3f4c94595599f511f96cc59de797a304dd91fcd6 /src/components/user_profile/user_profile.js | |
| parent | 83a376a25460f029c2f49ebca5509a9add7cdb44 (diff) | |
Add basic user profiles.
Diffstat (limited to 'src/components/user_profile/user_profile.js')
| -rw-r--r-- | src/components/user_profile/user_profile.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js new file mode 100644 index 00000000..4d52bc95 --- /dev/null +++ b/src/components/user_profile/user_profile.js @@ -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 |
