Commit 3e6dec1a authored by Evan Read's avatar Evan Read

Migrate collapsed time tracking tooltip

parent f3e836ac
<script> <script>
import { GlIcon } from '@gitlab/ui'; import { GlIcon, GlTooltipDirective } from '@gitlab/ui';
import { __, sprintf } from '~/locale'; import { __, sprintf } from '~/locale';
import tooltip from '~/vue_shared/directives/tooltip';
export default { export default {
name: 'TimeTrackingCollapsedState', name: 'TimeTrackingCollapsedState',
...@@ -9,7 +8,7 @@ export default { ...@@ -9,7 +8,7 @@ export default {
GlIcon, GlIcon,
}, },
directives: { directives: {
tooltip, GlTooltip: GlTooltipDirective,
}, },
props: { props: {
showComparisonState: { showComparisonState: {
...@@ -97,14 +96,7 @@ export default { ...@@ -97,14 +96,7 @@ export default {
</script> </script>
<template> <template>
<div <div v-gl-tooltip:body.viewport.left :title="tooltipText" class="sidebar-collapsed-icon">
v-tooltip
:title="tooltipText"
class="sidebar-collapsed-icon"
data-container="body"
data-placement="left"
data-boundary="viewport"
>
<gl-icon name="timer" /> <gl-icon name="timer" />
<div class="time-tracking-collapsed-summary"> <div class="time-tracking-collapsed-summary">
<div :class="divClass"> <div :class="divClass">
......
---
title: Migrate collapsed time tracking tooltip
merge_request: 44874
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