|
72 | 72 | :shown="showObjectAuthorPopover" |
73 | 73 | :subject-type="richObject.github_type" |
74 | 74 | :subject-id="richObject.id"> |
75 | | - <a :href="'https://github.com/' + richObject.user.login" |
76 | | - target="_blank" |
77 | | - class="author-link" |
78 | | - @mouseenter="showObjectAuthorPopover = true" |
79 | | - @mouseleave="showObjectAuthorPopover = false"> |
80 | | - {{ t('integration_github', 'by {creator}', { creator: richObject.user.login }) }} |
81 | | - </a> |
| 75 | + <template #trigger="{ attrs }"> |
| 76 | + <a v-bind="attrs" |
| 77 | + :href="'https://github.com/' + richObject.user.login" |
| 78 | + target="_blank" |
| 79 | + class="author-link" |
| 80 | + @mouseenter="showObjectAuthorPopover = true" |
| 81 | + @mouseleave="showObjectAuthorPopover = false"> |
| 82 | + {{ t('integration_github', 'by {creator}', { creator: richObject.user.login }) }} |
| 83 | + </a> |
| 84 | + </template> |
82 | 85 | </UserPopover> |
83 | 86 | |
84 | 87 | <span v-tooltip.top="{ content: subTextTooltip }" |
|
112 | 115 | :shown="showCommentAvatarPopover" |
113 | 116 | :subject-type="richObject.github_type" |
114 | 117 | :subject-id="richObject.id"> |
115 | | - <NcAvatar |
116 | | - class="author-avatar" |
117 | | - :is-no-user="true" |
118 | | - :url="commentAuthorAvatarUrl" |
119 | | - @mouseenter.native="showCommentAvatarPopover = true" |
120 | | - @mouseleave.native="showCommentAvatarPopover = false" /> |
| 118 | + <template #trigger="{ attrs }"> |
| 119 | + <NcAvatar v-bind="attrs" |
| 120 | + class="author-avatar" |
| 121 | + :is-no-user="true" |
| 122 | + :url="commentAuthorAvatarUrl" |
| 123 | + @mouseenter.native="showCommentAvatarPopover = true" |
| 124 | + @mouseleave.native="showCommentAvatarPopover = false" /> |
| 125 | + </template> |
121 | 126 | </UserPopover> |
122 | 127 | <span class="comment--content--bubble-tip" /> |
123 | 128 | <span class="comment--content--bubble"> |
|
126 | 131 | :shown="showCommentAuthorPopover" |
127 | 132 | :subject-type="richObject.github_type" |
128 | 133 | :subject-id="richObject.id"> |
129 | | - <strong @mouseenter="showCommentAuthorPopover = true" |
130 | | - @mouseleave="showCommentAuthorPopover = false"> |
131 | | - <a :href="commentAuthorUrl" target="_blank" class="author-link comment-author-display-name"> |
132 | | - {{ richObject.github_comment?.user?.login }} |
133 | | - </a> |
134 | | - </strong> |
| 134 | + <template #trigger="{ attrs }"> |
| 135 | + <strong v-bind="attrs" |
| 136 | + @mouseenter="showCommentAuthorPopover = true" |
| 137 | + @mouseleave="showCommentAuthorPopover = false"> |
| 138 | + <a :href="commentAuthorUrl" target="_blank" class="author-link comment-author-display-name"> |
| 139 | + {{ richObject.github_comment?.user?.login }} |
| 140 | + </a> |
| 141 | + </strong> |
| 142 | + </template> |
135 | 143 | </UserPopover> |
136 | 144 | |
137 | 145 | <span v-tooltip.top="{ content: commentedAtTooltip }" |
|
0 commit comments