Commit 19a06923 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '229020-update-todo-tooltip' into 'master'

Update todo vue tooltip with gl-tooltip

See merge request gitlab-org/gitlab!47810
parents c4eb1b3f a739e1a9
<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