Commit ad4f768c authored by Taurie Davis's avatar Taurie Davis

Remove jquery tooltip API call from stop environment button

parent 5497fa47
......@@ -4,7 +4,6 @@
* Used in environments table.
*/
import $ from 'jquery';
import { GlTooltipDirective, GlButton } from '@gitlab/ui';
import { s__ } from '~/locale';
import eventHub from '../event_hub';
......@@ -40,7 +39,7 @@ export default {
},
methods: {
onClick() {
$(this.$el).tooltip('dispose');
this.$root.$emit('bv::hide::tooltip', this.$options.stopEnvironmentTooltipId);
eventHub.$emit('requestStopEnvironment', this.environment);
},
onStopEnvironment(environment) {
......@@ -49,11 +48,12 @@ export default {
}
},
},
stopEnvironmentTooltipId: 'stop-environment-button-tooltip',
};
</script>
<template>
<gl-button
v-gl-tooltip
v-gl-tooltip="{ id: $options.stopEnvironmentTooltipId }"
:loading="isLoading"
:title="title"
:aria-label="title"
......
---
title: Remove jquery tooltip API call from stop environment button
merge_request: 44199
author:
type: changed
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