From 112fe349cb75b79a0075f5d3f89cf847b7beaf2d Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 28 Jul 2021 21:08:53 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/assets/javascripts/main.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'app/assets/javascripts/main.js') diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index f63bf8f49cb..1aaefcaa13b 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -35,7 +35,6 @@ import GlFieldErrors from './gl_field_errors'; import initUserPopovers from './user_popovers'; import initBroadcastNotifications from './broadcast_notification'; import { initTopNav } from './nav'; -import navEventHub, { EVENT_RESPONSIVE_TOGGLE } from './nav/event_hub'; import 'ee_else_ce/main_ee'; @@ -203,11 +202,7 @@ $body.on('ajax:complete, ajax:beforeSend, submit', 'form', function ajaxComplete }); $('.navbar-toggler').on('click', () => { - // The order is important. The `menu-expanded` is used as a source of truth for now. - // This can be simplified when the :combined_menu feature flag is removed. - // https://gitlab.com/gitlab-org/gitlab/-/issues/333180 - $('.header-content').toggleClass('menu-expanded'); - navEventHub.$emit(EVENT_RESPONSIVE_TOGGLE); + document.body.classList.toggle('top-nav-responsive-open'); }); /** -- cgit v1.2.3