mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Merge pull request #5699 from kevinansfield/close-nav-menu-on-transition
Mobile nav menu fixes
This commit is contained in:
commit
4233b68852
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