Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot 2021-08-21 00:11:06 +00:00
parent 3867f47265
commit 863c915aa6
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
import $ from 'jquery';
import Cookies from 'js-cookie';
import { hide } from '~/tooltips';
import { hide, fixTitle } from '~/tooltips';
import createFlash from './flash';
import axios from './lib/utils/axios_utils';
import { sprintf, s__, __ } from './locale';
@ -75,6 +75,9 @@ Sidebar.prototype.sidebarToggleClicked = function (e, triggered) {
}
$this.attr('data-original-title', tooltipLabel);
$this.attr('title', tooltipLabel);
fixTitle($this);
hide($this);
if (!triggered) {
Cookies.set('collapsed_gutter', $('.right-sidebar').hasClass('right-sidebar-collapsed'));