Commit a739e1a9 authored by Jarek Ostrowski's avatar Jarek Ostrowski

Update todo vue tooltip with gl-tooltip

MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47810
parent 13a73325
<script>
import { GlLoadingIcon, GlIcon } from '@gitlab/ui';
import { GlLoadingIcon, GlIcon, GlTooltipDirective } from '@gitlab/ui';
import { __ } from '~/locale';
import tooltip from '~/vue_shared/directives/tooltip';
const MARK_TEXT = __('Mark as done');
const TODO_TEXT = __('Add a To-Do');
export default {
directives: {
tooltip,
},
components: {
GlIcon,
GlLoadingIcon,
},
directives: {
GlTooltip: GlTooltipDirective,
},
props: {
issuableId: {
type: Number,
......@@ -71,16 +70,13 @@ export default {
<template>
<button
v-tooltip
v-gl-tooltip.left.viewport
:class="buttonClasses"
:title="buttonTooltip"
:aria-label="buttonLabel"
:data-issuable-id="issuableId"
:data-issuable-type="issuableType"
type="button"
data-container="body"
data-placement="left"
data-boundary="viewport"
@click="handleButtonClick"
>
<gl-icon
......
......@@ -4,13 +4,8 @@ exports[`SidebarTodo template renders component container element with proper da
<button
aria-label="Mark as done"
class="btn btn-default btn-todo issuable-header-btn float-right"
data-boundary="viewport"
data-container="body"
data-issuable-id="1"
data-issuable-type="epic"
data-original-title=""
data-placement="left"
title=""
type="button"
>
<gl-icon-stub
......
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