Skip to content

Commit

Permalink
Merge pull request #5917 from nextcloud-libraries/fix/5708/user-bubble
Browse files Browse the repository at this point in the history
fix(NcUserBubble): fix tag assignment if no url but to provided
  • Loading branch information
Antreesy committed Aug 5, 2024
2 parents 1628264 + 3080e1a commit 0f2b2cb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/NcUserBubble/NcUserBubble.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,13 @@ export default {
},
isLinkComponent() {
return this.hasUrl
? (this.to ? RouterLink : 'a')
: 'div'
if (this.hasUrl) {
return 'a'
} else if (this.to) {
return RouterLink
} else {
return 'div'
}
},
popoverEmpty() {
Expand Down Expand Up @@ -339,8 +343,4 @@ export default {
padding-left: 4px;
}
}
a.user-bubble__content {
cursor: pointer;
}
</style>

0 comments on commit 0f2b2cb

Please sign in to comment.