mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
6681ad4a7d
- [x] Mobilemenu button is missing from `content` and `editor` views - [x] Mobilemenu pane slides entire content over, should expand over-top-of-content - [x] Mobilemenu can't be closed - [x] gh-view-title no longer generates an extra div; it is the h2. - [x] gh-autonav-toggle closes the mobile menu on mobile. renamed `gh-menu-toggle` - [ ] There is weird behaviour with mobile menu when changing from big=>small=>big viewport sizes - ~~[ ] (Future issue) Ghost should remember (localstorage?) whether desktop menu is expanded or collapsed~~
30 lines
560 B
JavaScript
30 lines
560 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
tagName: 'nav',
|
|
classNames: ['gh-nav'],
|
|
classNameBindings: ['open'],
|
|
|
|
config: Ember.inject.service(),
|
|
|
|
open: false,
|
|
|
|
mouseEnter () {
|
|
this.sendAction('onMouseEnter');
|
|
},
|
|
|
|
actions: {
|
|
toggleAutoNav () {
|
|
this.sendAction('toggleAutoNav');
|
|
},
|
|
|
|
openModal (modal) {
|
|
this.sendAction('openModal', modal);
|
|
},
|
|
|
|
closeMobileMenu () {
|
|
this.sendAction('closeMobileMenu');
|
|
}
|
|
}
|
|
});
|