Commit af16e5e1 authored by Sunjung Park's avatar Sunjung Park Committed by Vitaly Slobodin

Geo: Replace the tooltip component on the secondary node MR widget

parent 69493001
<script> <script>
import { GlIcon } from '@gitlab/ui'; import { GlIcon, GlTooltipDirective } from '@gitlab/ui';
import tooltip from '~/vue_shared/directives/tooltip';
import statusIcon from '~/vue_merge_request_widget/components/mr_widget_status_icon.vue'; import statusIcon from '~/vue_merge_request_widget/components/mr_widget_status_icon.vue';
export default { export default {
...@@ -9,7 +8,7 @@ export default { ...@@ -9,7 +8,7 @@ export default {
statusIcon, statusIcon,
}, },
directives: { directives: {
tooltip, GlTooltip: GlTooltipDirective,
}, },
props: { props: {
mr: { mr: {
...@@ -25,13 +24,11 @@ export default { ...@@ -25,13 +24,11 @@ export default {
<div class="media-body"> <div class="media-body">
<span class="bold">{{ __('Merge requests are read-only in a secondary Geo node') }}</span> <span class="bold">{{ __('Merge requests are read-only in a secondary Geo node') }}</span>
<a <a
v-tooltip v-gl-tooltip
:href="mr.geoSecondaryHelpPath" :href="mr.geoSecondaryHelpPath"
:title="__('About this feature')" :title="__('About this feature')"
data-placement="bottom"
target="_blank" target="_blank"
rel="noopener noreferrer nofollow" rel="noopener noreferrer nofollow"
data-container="body"
> >
<gl-icon name="question-o" /> <gl-icon name="question-o" />
</a> </a>
......
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