diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-11-05 16:12:40 +0300 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2018-11-22 00:11:41 +0300 |
commit | 02e74971663d14e5c43f89b6911766ce2062ed39 (patch) | |
tree | 9de3057851f2ab7f7ae662ad6fa2ee34fa99379a /app/assets/javascripts/vue_shared/components/time_ago_tooltip.vue | |
parent | 62e0877d5a2290403975667eb679dc94a2340655 (diff) |
Replace tooltip directive with gl-tooltip directive in badges, cycle analytics, and diffs
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/time_ago_tooltip.vue')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/time_ago_tooltip.vue | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/assets/javascripts/vue_shared/components/time_ago_tooltip.vue b/app/assets/javascripts/vue_shared/components/time_ago_tooltip.vue index a01c5be98e3..58205d8bc69 100644 --- a/app/assets/javascripts/vue_shared/components/time_ago_tooltip.vue +++ b/app/assets/javascripts/vue_shared/components/time_ago_tooltip.vue @@ -1,5 +1,5 @@ <script> -import tooltip from '../directives/tooltip'; +import { GlTooltipDirective } from '@gitlab-org/gitlab-ui'; import timeagoMixin from '../mixins/timeago'; import '../../lib/utils/datetime_utility'; @@ -9,7 +9,7 @@ import '../../lib/utils/datetime_utility'; export default { directives: { - tooltip, + GlTooltip: GlTooltipDirective, }, mixins: [timeagoMixin], props: { @@ -34,11 +34,10 @@ export default { </script> <template> <time - v-tooltip + v-gl-tooltip="{ placement: tooltipPlacement }" :class="cssClass" :title="tooltipTitle(time)" :data-placement="tooltipPlacement" - data-container="body" v-text="timeFormated(time)" > </time> |