Commit 69eafe3a authored by Enrique Alcántara's avatar Enrique Alcántara

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

Replace BSTooltip with GlTooltip in project_label_subscription.js

See merge request gitlab-org/gitlab!44381
parents dc61c8f9 a57bb66e
...@@ -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 } from '~/tooltips';
const tooltipTitles = { const tooltipTitles = {
group: { group: {
...@@ -66,6 +67,7 @@ export default class ProjectLabelSubscription { ...@@ -66,6 +67,7 @@ export default class ProjectLabelSubscription {
const type = /group/.test(originalTitle) ? 'group' : 'project'; const type = /group/.test(originalTitle) ? 'group' : 'project';
const newTitle = tooltipTitles[type][newStatus]; const newTitle = tooltipTitles[type][newStatus];
$button.attr('title', newTitle).tooltip('_fixTitle'); $button.attr('title', newTitle);
fixTitle($button);
} }
} }
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