Merge pull request #6764 from overleaf/msm-fix-toggle-marketing-navbar

Fix collapsed menu toggling in marketing pages

GitOrigin-RevId: f1075d46242ad6265ebaa0e65031e99f902fe503
This commit is contained in:
Miguel Serrano 2022-02-15 10:58:45 +01:00 committed by Copybot
parent f23cc433a4
commit 41475ca14a

View file

@ -17,7 +17,7 @@ nav.navbar.navbar-default.navbar-main
- var canDisplayAdminMenu = getSessionUser() && getSessionUser().isAdmin - var canDisplayAdminMenu = getSessionUser() && getSessionUser().isAdmin
- var canDisplaySplitTestMenu = hasFeature('saas') && (canDisplayAdminMenu || (getSessionUser() && getSessionUser().staffAccess && (getSessionUser().staffAccess.splitTestMetrics || getSessionUser().staffAccess.splitTestManagement))) - var canDisplaySplitTestMenu = hasFeature('saas') && (canDisplayAdminMenu || (getSessionUser() && getSessionUser().staffAccess && (getSessionUser().staffAccess.splitTestMetrics || getSessionUser().staffAccess.splitTestManagement)))
.navbar-collapse.collapse(collapse="navCollapsed") .navbar-collapse.collapse(data-ol-navbar-main-collapse)
ul.nav.navbar-nav.navbar-right ul.nav.navbar-nav.navbar-right
if (canDisplayAdminMenu || canDisplaySplitTestMenu) if (canDisplayAdminMenu || canDisplaySplitTestMenu)
li.dropdown.subdued li.dropdown.subdued