Commit f1e35e7e authored by Filipa Lacerda's avatar Filipa Lacerda

Removes jquery as a dependency

parent 6d2b8036
<script> <script>
import $ from 'jquery';
import { GlTooltipDirective, GlButton } from '@gitlab-org/gitlab-ui'; import { GlTooltipDirective, GlButton } from '@gitlab-org/gitlab-ui';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
import { dasherize } from '~/lib/utils/text_utility'; import { dasherize } from '~/lib/utils/text_utility';
...@@ -58,8 +57,7 @@ export default { ...@@ -58,8 +57,7 @@ export default {
* *
*/ */
onClickAction() { onClickAction() {
$(this.$el).tooltip('hide'); this.$root.$emit('bv::hide::tooltip', `js-ci-action-${this.link}`);
this.isDisabled = true; this.isDisabled = true;
axios axios
...@@ -79,7 +77,8 @@ export default { ...@@ -79,7 +77,8 @@ export default {
</script> </script>
<template> <template>
<gl-button <gl-button
v-gl-tooltip.hover="{ boundary: 'viewport' }" :id="`js-ci-action-${link}`"
v-gl-tooltip="{ boundary: 'viewport' }"
:title="tooltipText" :title="tooltipText"
:class="cssClass" :class="cssClass"
:disabled="isDisabled" :disabled="isDisabled"
......
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