Skip to content

Commit

Permalink
Fix avatar menu click handler
Browse files Browse the repository at this point in the history
The disableMenu condition was inverted.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
  • Loading branch information
PVince81 committed Dec 15, 2020
1 parent cb25b7e commit a7c6e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}"
:style="avatarStyle"
class="avatardiv popovermenu-wrapper"
v-on="disableMenu ? { click: toggleMenu } : {}">
v-on="!disableMenu ? { click: toggleMenu } : {}">
<!-- Avatar icon or image -->
<div v-if="iconClass" :class="iconClass" class="avatar-class-icon" />
<img v-else-if="isAvatarLoaded && !userDoesNotExist"
Expand Down

0 comments on commit a7c6e2f

Please sign in to comment.