Commit 6ffccfdc authored by Phil Hughes's avatar Phil Hughes

Merge branch 'okr-tooltip-mr-widget-author-vue' into 'master'

Migrate to GlTooltipDirective in mr_widget_author.vue

See merge request gitlab-org/gitlab!46034
parents 32204900 4b517842
<script> <script>
import tooltip from '../../vue_shared/directives/tooltip'; import { GlTooltipDirective } from '@gitlab/ui';
export default { export default {
name: 'MrWidgetAuthor', name: 'MrWidgetAuthor',
directives: { directives: {
tooltip, GlTooltip: GlTooltipDirective,
}, },
props: { props: {
author: { author: {
...@@ -16,11 +16,6 @@ export default { ...@@ -16,11 +16,6 @@ export default {
required: false, required: false,
default: true, default: true,
}, },
showAuthorTooltip: {
type: Boolean,
required: false,
default: false,
},
}, },
computed: { computed: {
authorUrl() { authorUrl() {
...@@ -33,12 +28,7 @@ export default { ...@@ -33,12 +28,7 @@ export default {
}; };
</script> </script>
<template> <template>
<a <a v-gl-tooltip :href="authorUrl" :title="author.name" class="author-link inline">
:href="authorUrl"
:v-tooltip="showAuthorTooltip"
:title="author.name"
class="author-link inline"
>
<img :src="avatarUrl" class="avatar avatar-inline s16" /> <img :src="avatarUrl" class="avatar avatar-inline s16" />
<span v-if="showAuthorName" class="author">{{ author.name }}</span> <span v-if="showAuthorName" class="author">{{ author.name }}</span>
</a> </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