Commit 739f9da8 authored by peterhegman's avatar peterhegman

Remove unnecessary computed properties

parent 7d541da8
...@@ -73,18 +73,6 @@ export default { ...@@ -73,18 +73,6 @@ export default {
'js-user-link': true, 'js-user-link': true,
}; };
}, },
authorPath() {
return this.author.path;
},
authorName() {
return this.author.name;
},
authorUsername() {
return this.author.username;
},
authorId() {
return this.author.id;
},
authorStatus() { authorStatus() {
return this.author.status_tooltip_html; return this.author.status_tooltip_html;
}, },
...@@ -143,13 +131,13 @@ export default { ...@@ -143,13 +131,13 @@ export default {
<template v-if="hasAuthor"> <template v-if="hasAuthor">
<a <a
ref="authorNameLink" ref="authorNameLink"
:href="authorPath" :href="author.path"
:class="authorLinkClasses" :class="authorLinkClasses"
:data-user-id="authorId" :data-user-id="author.id"
:data-username="authorUsername" :data-username="author.username"
> >
<slot name="note-header-info"></slot> <slot name="note-header-info"></slot>
<span class="note-header-author-name bold">{{ authorName }}</span> <span class="note-header-author-name bold">{{ author.name }}</span>
</a> </a>
<span <span
v-if="authorStatus" v-if="authorStatus"
...@@ -163,10 +151,10 @@ export default { ...@@ -163,10 +151,10 @@ export default {
<a <a
ref="authorUsernameLink" ref="authorUsernameLink"
class="author-username-link" class="author-username-link"
:href="authorPath" :href="author.path"
@mouseenter="handleUsernameMouseEnter" @mouseenter="handleUsernameMouseEnter"
@mouseleave="handleUsernameMouseLeave" @mouseleave="handleUsernameMouseLeave"
><span class="note-headline-light">@{{ authorUsername }}</span> ><span class="note-headline-light">@{{ author.username }}</span>
</a> </a>
<gitlab-team-member-badge v-if="showGitlabTeamMemberBadge" /> <gitlab-team-member-badge v-if="showGitlabTeamMemberBadge" />
</span> </span>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment