summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-11-13 10:48:10 -0500
committerFilipa Lacerda <filipa@gitlab.com>2018-11-13 10:48:10 -0500
commitc58a231323754ca9a5f67b665bb75753c113da3b (patch)
tree67e3bed4129bcde80240aba3cdd236eab5718823
parent6d2b80366e6d2c6f987008df48da22e15b1b2a3e (diff)
downloadgitlab-ce-fl-gitlab-ui-cicd.tar.gz
Removes jquery as a dependencyfl-gitlab-ui-cicd
-rw-r--r--app/assets/javascripts/pipelines/components/graph/action_component.vue5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/pipelines/components/graph/action_component.vue b/app/assets/javascripts/pipelines/components/graph/action_component.vue
index 741689dd559..ebe29f36476 100644
--- a/app/assets/javascripts/pipelines/components/graph/action_component.vue
+++ b/app/assets/javascripts/pipelines/components/graph/action_component.vue
@@ -1,5 +1,4 @@
<script>
-import $ from 'jquery';
import { GlTooltipDirective, GlButton } from '@gitlab-org/gitlab-ui';
import axios from '~/lib/utils/axios_utils';
import { dasherize } from '~/lib/utils/text_utility';
@@ -58,8 +57,7 @@ export default {
*
*/
onClickAction() {
- $(this.$el).tooltip('hide');
-
+ this.$root.$emit('bv::hide::tooltip', `js-ci-action-${this.link}`);
this.isDisabled = true;
axios
@@ -79,6 +77,7 @@ export default {
</script>
<template>
<gl-button
+ :id="`js-ci-action-${link}`"
v-gl-tooltip.hover="{ boundary: 'viewport' }"
:title="tooltipText"
:class="cssClass"