close on avatar click again, add zooming as option
This commit is contained in:
parent
700df11e9a
commit
d232fa3dc3
7 changed files with 26 additions and 5 deletions
|
|
@ -38,7 +38,8 @@ export default {
|
|||
'rounded',
|
||||
'bordered',
|
||||
'allowZoomingAvatar',
|
||||
'onClose'
|
||||
'onClose',
|
||||
'onAvatarClick'
|
||||
],
|
||||
data () {
|
||||
return {
|
||||
|
|
@ -182,6 +183,12 @@ export default {
|
|||
},
|
||||
mentionUser () {
|
||||
this.$store.dispatch('openPostStatusModal', { replyTo: true, repliedUser: this.user })
|
||||
},
|
||||
onAvatarClickHandler (e) {
|
||||
if (this.onAvatarClick) {
|
||||
e.preventDefault()
|
||||
this.onAvatarClick()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
<router-link
|
||||
v-else
|
||||
:to="userProfileLink(user)"
|
||||
@click="onAvatarClickHandler"
|
||||
>
|
||||
<UserAvatar
|
||||
:better-shadow="betterShadow"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue