diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-11-13 10:48:10 -0500 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-11-14 10:37:58 -0500 |
commit | f1e35e7ef18418361f0255a88107d1907b02d8cc (patch) | |
tree | 51f149ed6db12e6078257860df2b253009fd9369 /app/assets | |
parent | 6d2b80366e6d2c6f987008df48da22e15b1b2a3e (diff) | |
download | gitlab-ce-f1e35e7ef18418361f0255a88107d1907b02d8cc.tar.gz |
Removes jquery as a dependency
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/pipelines/components/graph/action_component.vue | 7 |
1 files changed, 3 insertions, 4 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..f6a97236ebf 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,7 +77,8 @@ export default { </script> <template> <gl-button - v-gl-tooltip.hover="{ boundary: 'viewport' }" + :id="`js-ci-action-${link}`" + v-gl-tooltip="{ boundary: 'viewport' }" :title="tooltipText" :class="cssClass" :disabled="isDisabled" |