Commit 8771610f authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'russell/migrate-ide-commit-sidebar-tooltip' into 'master'

Migrate tooltip component to GitLab UI’s tooltip

See merge request gitlab-org/gitlab!45617
parents efd2a6de 8c7474f5
<script> <script>
import { mapActions } from 'vuex'; import { mapActions } from 'vuex';
import { GlIcon } from '@gitlab/ui'; import { GlIcon, GlTooltipDirective } from '@gitlab/ui';
import tooltip from '~/vue_shared/directives/tooltip';
import FileIcon from '~/vue_shared/components/file_icon.vue'; import FileIcon from '~/vue_shared/components/file_icon.vue';
import { viewerTypes } from '../../constants'; import { viewerTypes } from '../../constants';
import getCommitIconMap from '../../commit_icon'; import getCommitIconMap from '../../commit_icon';
...@@ -12,7 +11,7 @@ export default { ...@@ -12,7 +11,7 @@ export default {
FileIcon, FileIcon,
}, },
directives: { directives: {
tooltip, GlTooltip: GlTooltipDirective,
}, },
props: { props: {
file: { file: {
...@@ -77,7 +76,7 @@ export default { ...@@ -77,7 +76,7 @@ export default {
<template> <template>
<div class="multi-file-commit-list-item position-relative"> <div class="multi-file-commit-list-item position-relative">
<div <div
v-tooltip v-gl-tooltip
:title="tooltipTitle" :title="tooltipTitle"
:class="{ :class="{
'is-active': isActive, 'is-active': isActive,
......
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