Commit 619351e0 authored by Marcel Amirault's avatar Marcel Amirault

Update tooltip to GitLab UI component

parent 36f93ead
<script> <script>
import { GlIcon } from '@gitlab/ui'; import { GlIcon, GlTooltipDirective } from '@gitlab/ui';
import { __ } from '../../../../locale'; import { __ } from '../../../../locale';
import tooltip from '../../../../vue_shared/directives/tooltip';
const directions = { const directions = {
up: 'up', up: 'up',
...@@ -10,7 +9,7 @@ const directions = { ...@@ -10,7 +9,7 @@ const directions = {
export default { export default {
directives: { directives: {
tooltip, GlTooltip: GlTooltipDirective,
}, },
components: { components: {
GlIcon, GlIcon,
...@@ -46,7 +45,7 @@ export default { ...@@ -46,7 +45,7 @@ export default {
<template> <template>
<div <div
v-tooltip v-gl-tooltip
:title="tooltipTitle" :title="tooltipTitle"
class="controllers-buttons" class="controllers-buttons"
data-container="body" data-container="body"
......
...@@ -31,7 +31,7 @@ describe('IDE job log scroll button', () => { ...@@ -31,7 +31,7 @@ describe('IDE job log scroll button', () => {
}); });
it('returns proper title', () => { it('returns proper title', () => {
expect(wrapper.attributes('data-original-title')).toBe(title); expect(wrapper.attributes('title')).toBe(title);
}); });
}); });
......
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