Skip to content

Commit

Permalink
fix(NcUserBubble): fix tag assignment if no url but to provided
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Aug 5, 2024
1 parent 9e13fd6 commit 3080e1a
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 3080e1a

Please sign in to comment.