Commit 279b5532 authored by Marcia Ramos's avatar Marcia Ramos

Update tooltip component

parent 8bd8ea37
<script> <script>
import { mapActions } from 'vuex'; import { mapActions } from 'vuex';
import { GlModal, GlIcon } from '@gitlab/ui'; import { GlModal, GlIcon, GlTooltipDirective } from '@gitlab/ui';
import { __, sprintf } from '~/locale'; import { __, sprintf } from '~/locale';
import tooltip from '~/vue_shared/directives/tooltip';
import ListItem from './list_item.vue'; import ListItem from './list_item.vue';
export default { export default {
...@@ -12,7 +11,7 @@ export default { ...@@ -12,7 +11,7 @@ export default {
GlModal, GlModal,
}, },
directives: { directives: {
tooltip, GlTooltip: GlTooltipDirective,
}, },
props: { props: {
fileList: { fileList: {
...@@ -73,7 +72,7 @@ export default { ...@@ -73,7 +72,7 @@ export default {
<div class="d-flex ml-auto"> <div class="d-flex ml-auto">
<button <button
v-if="!stagedList" v-if="!stagedList"
v-tooltip v-gl-tooltip
:title="__('Discard all changes')" :title="__('Discard all changes')"
:aria-label="__('Discard all changes')" :aria-label="__('Discard all changes')"
:disabled="!filesLength" :disabled="!filesLength"
......
---
title: "Migrate tooltip in app/assets/javascripts/ide/components/commit_sidebar/list.vue"
merge_request: 46148
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