diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-29 09:07:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-29 09:07:58 +0300 |
commit | 95085ac5cdbf6fcb12c6bdb167f663844d05147d (patch) | |
tree | a0107e379526090ec3be43eb81929e159b912a4c /app/assets/javascripts/work_items | |
parent | 111f9a7cc6834edfeb81c4b91bcf43df332096a7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/work_items')
-rw-r--r-- | app/assets/javascripts/work_items/components/notes/work_item_note.vue | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/app/assets/javascripts/work_items/components/notes/work_item_note.vue b/app/assets/javascripts/work_items/components/notes/work_item_note.vue index 4ec13f3d24a..41015da3f34 100644 --- a/app/assets/javascripts/work_items/components/notes/work_item_note.vue +++ b/app/assets/javascripts/work_items/components/notes/work_item_note.vue @@ -104,6 +104,9 @@ export default { author() { return this.note.author; }, + authorId() { + return getIdFromGraphQLId(this.author.id); + }, entryClass() { return { 'note note-wrapper note-comment': true, @@ -152,10 +155,10 @@ export default { return window.gon.current_user_id; }, isCurrentUserAuthorOfNote() { - return getIdFromGraphQLId(this.author.id) === this.currentUserId; + return this.authorId === this.currentUserId; }, isWorkItemAuthor() { - return getIdFromGraphQLId(this.workItem?.author?.id) === getIdFromGraphQLId(this.author.id); + return getIdFromGraphQLId(this.workItem?.author?.id) === this.authorId; }, projectName() { return this.workItem?.project?.name; @@ -287,7 +290,12 @@ export default { <template> <timeline-entry-item :id="noteAnchorId" :class="entryClass"> <div :key="note.id" class="timeline-avatar gl-float-left"> - <gl-avatar-link :href="author.webUrl"> + <gl-avatar-link + :href="author.webUrl" + :data-user-id="authorId" + :data-username="author.username" + class="js-user-link" + > <gl-avatar :src="author.avatarUrl" :entity-name="author.username" |