Commit 0a090a41 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch '249798-replace-tooltip' into 'master'

Replace BSTooltip with GlTooltip in board_delete.js

See merge request gitlab-org/gitlab!44379
parents 4099a40e 631fbab7
import $ from 'jquery';
import Vue from 'vue'; import Vue from 'vue';
import { GlButton, GlTooltipDirective } from '@gitlab/ui'; import { GlButton, GlTooltipDirective } from '@gitlab/ui';
import { __ } from '~/locale'; import { __ } from '~/locale';
import { hide } from '~/tooltips';
export default Vue.extend({ export default Vue.extend({
components: { components: {
...@@ -19,7 +19,7 @@ export default Vue.extend({ ...@@ -19,7 +19,7 @@ export default Vue.extend({
}, },
methods: { methods: {
deleteBoard() { deleteBoard() {
$(this.$el).tooltip('hide'); hide(this.$el);
// eslint-disable-next-line no-alert // eslint-disable-next-line no-alert
if (window.confirm(__('Are you sure you want to delete this list?'))) { if (window.confirm(__('Are you sure you want to delete this list?'))) {
......
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