mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Mobile nav menu fixes
issue #5483 & #5652 - trigger the close menus action every time a route transition is successful - close nav menu when clicking "collapse sidebar" button (action chain was incomplete)
This commit is contained in:
parent
f1a602e3f9
commit
cbb106e12e
2 changed files with 5 additions and 1 deletions
|
@ -48,6 +48,10 @@ export default Ember.Route.extend(ApplicationRouteMixin, ShortcutsRoute, {
|
|||
});
|
||||
},
|
||||
|
||||
didTransition: function () {
|
||||
this.send('closeMenus');
|
||||
},
|
||||
|
||||
signedIn: function () {
|
||||
this.send('loadServerNotifications', true);
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<div class="gh-viewport {{if autoNav 'gh-autonav'}} {{if showSettingsMenu 'settings-menu-expanded'}} {{if showMobileMenu 'mobile-menu-expanded'}}">
|
||||
{{#unless signedOut}}
|
||||
{{gh-nav-menu open=autoNavOpen onMouseEnter="openAutoNav" toggleMaximise="toggleAutoNav" openModal="openModal"}}
|
||||
{{gh-nav-menu open=autoNavOpen onMouseEnter="openAutoNav" toggleMaximise="toggleAutoNav" openModal="openModal" closeMobileMenu="closeMobileMenu"}}
|
||||
{{/unless}}
|
||||
|
||||
{{#gh-main onMouseEnter="closeAutoNav" data-notification-count=topNotificationCount}}
|
||||
|
|
Loading…
Add table
Reference in a new issue