Commit f9e08351 authored by Chad Woolley's avatar Chad Woolley Committed by Enrique Alcantara

Use GlTooltip in group_label_subscription.js

Replace BSTooltip with GlTooltip
parent 56168614
......@@ -2,6 +2,7 @@ import $ from 'jquery';
import { __ } from '~/locale';
import axios from './lib/utils/axios_utils';
import { deprecatedCreateFlash as flash } from './flash';
import { fixTitle, hide } from '~/tooltips';
const tooltipTitles = {
group: __('Unsubscribe at group level'),
......@@ -59,9 +60,9 @@ export default class GroupLabelSubscription {
const type = $button.hasClass('js-group-level') ? 'group' : 'project';
const newTitle = tooltipTitles[type];
$('.js-unsubscribe-button', $button.closest('.label-actions-list'))
.tooltip('hide')
.attr('title', newTitle)
.tooltip('_fixTitle');
const $el = $('.js-unsubscribe-button', $button.closest('.label-actions-list'));
hide($el);
$el.attr('title', `${newTitle}`);
fixTitle($el);
}
}
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