Commit a64621fc authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch...

Merge branch '249799-replace-bstooltip-with-gltooltip-in-app-assets-javascripts-group_label_subscription-js' into 'master'

Replace BSTooltip with GlTooltip in app/assets/javascripts/group_label_subscription.js

See merge request gitlab-org/gitlab!45032
parents 231f0732 f9e08351
...@@ -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