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