Commit 9ef0f7eb authored by Phil Hughes's avatar Phil Hughes

fixed approvals MR widget component

parent ffc63066
...@@ -6,6 +6,16 @@ ...@@ -6,6 +6,16 @@
type: Object, type: Object,
required: true, required: true,
}, },
showAuthorName: {
type: Boolean,
required: false,
default: true,
},
showAuthorTooltip: {
type: Boolean,
required: false,
default: false,
},
}, },
computed: { computed: {
authorUrl() { authorUrl() {
...@@ -21,12 +31,17 @@ ...@@ -21,12 +31,17 @@
<a <a
:href="authorUrl" :href="authorUrl"
class="author-link inline" class="author-link inline"
:v-tooltip="showAuthorTooltip"
:title="author.name"
> >
<img <img
:src="avatarUrl" :src="avatarUrl"
class="avatar avatar-inline s16" class="avatar avatar-inline s16"
/> />
<span class="author"> <span
class="author"
v-if="showAuthorName"
>
{{ author.name }} {{ author.name }}
</span> </span>
</a> </a>
......
import Flash from '~/flash'; import Flash from '~/flash';
import MRWidgetAuthor from '~/vue_merge_request_widget/components/mr_widget_author'; import MRWidgetAuthor from '~/vue_merge_request_widget/components/mr_widget_author.vue';
import eventHub from '~/vue_merge_request_widget/event_hub'; import eventHub from '~/vue_merge_request_widget/event_hub';
export default { export default {
......
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