Commit 4b517842 authored by Marcia Ramos's avatar Marcia Ramos Committed by Phil Hughes

Migrate to GlTooltipDirective in mr_widget_author.vue

parent ecf8d59f
<script>
import tooltip from '../../vue_shared/directives/tooltip';
import { GlTooltipDirective } from '@gitlab/ui';
export default {
name: 'MrWidgetAuthor',
directives: {
tooltip,
GlTooltip: GlTooltipDirective,
},
props: {
author: {
......@@ -16,11 +16,6 @@ export default {
required: false,
default: true,
},
showAuthorTooltip: {
type: Boolean,
required: false,
default: false,
},
},
computed: {
authorUrl() {
......@@ -33,12 +28,7 @@ export default {
};
</script>
<template>
<a
:href="authorUrl"
:v-tooltip="showAuthorTooltip"
:title="author.name"
class="author-link inline"
>
<a v-gl-tooltip :href="authorUrl" :title="author.name" class="author-link inline">
<img :src="avatarUrl" class="avatar avatar-inline s16" />
<span v-if="showAuthorName" class="author">{{ author.name }}</span>
</a>
......
---
title: Migrate tooltip in app/assets/javascripts/vue_merge_request_widget/components/mr_widget_author.vue
merge_request: 46034
author:
type: other
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