diff options
| author | Shpuld Shpludson <shp@cock.li> | 2019-07-31 17:46:24 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-07-31 17:46:24 +0000 |
| commit | f031e96334d9c5eeb510dcb1dc8700edd4ec2465 (patch) | |
| tree | 28eb7aeff23c824bc416ba05f11b083208dd8899 /src/components/user_card/user_card.js | |
| parent | f4b9efff7702113a083b5ef42c3fd8fc72ff93b4 (diff) | |
| parent | be7a508d89d8ea4b78abeba73625d25d22726270 (diff) | |
Merge branch '618' into 'develop'
Ability to enlarge profile picture in profile page
Closes #618
See merge request pleroma/pleroma-fe!890
Diffstat (limited to 'src/components/user_card/user_card.js')
| -rw-r--r-- | src/components/user_card/user_card.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index e019ebbd..82d3b835 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -7,7 +7,7 @@ import { requestFollow, requestUnfollow } from '../../services/follow_manipulate import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator' export default { - props: [ 'user', 'switcher', 'selected', 'hideBio', 'rounded', 'bordered' ], + props: [ 'user', 'switcher', 'selected', 'hideBio', 'rounded', 'bordered', 'allowZoomingAvatar' ], data () { return { followRequestInProgress: false, @@ -162,6 +162,14 @@ export default { }, reportUser () { this.$store.dispatch('openUserReportingModal', this.user.id) + }, + zoomAvatar () { + const attachment = { + url: this.user.profile_image_url_original, + mimetype: 'image' + } + this.$store.dispatch('setMedia', [attachment]) + this.$store.dispatch('setCurrent', attachment) } } } |
