Commit 949dac07 authored by Taurie Davis's avatar Taurie Davis

Remove jquery tooltip API call from delete environment button

parent b8a3604b
......@@ -4,7 +4,6 @@
* Used in the environments table and the environment detail view.
*/
import $ from 'jquery';
import { GlTooltipDirective, GlIcon } from '@gitlab/ui';
import { s__ } from '~/locale';
import eventHub from '../event_hub';
......@@ -42,7 +41,7 @@ export default {
},
methods: {
onClick() {
$(this.$el).tooltip('dispose');
this.$root.$emit('bv::hide::tooltip', this.$options.deleteEnvironmentTooltipId);
eventHub.$emit('requestDeleteEnvironment', this.environment);
},
onDeleteEnvironment(environment) {
......@@ -51,11 +50,12 @@ export default {
}
},
},
deleteEnvironmentTooltipId: 'delete-environment-button-tooltip',
};
</script>
<template>
<loading-button
v-gl-tooltip
v-gl-tooltip="{ id: $options.deleteEnvironmentTooltipId }"
:loading="isLoading"
:title="title"
:aria-label="title"
......
---
title: Remove jquery tooltip API call from delete environment button
merge_request: 44191
author:
type: other
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