0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/client/app/components/gh-nav-menu.js

40 lines
701 B
JavaScript
Raw Normal View History

2015-05-24 00:47:23 -05:00
import Ember from 'ember';
2016-01-19 07:03:27 -06:00
const {
Component,
inject: {service}
} = Ember;
export default Component.extend({
2015-05-24 00:47:23 -05:00
tagName: 'nav',
classNames: ['gh-nav'],
classNameBindings: ['open'],
open: false,
2016-01-19 07:03:27 -06:00
config: service(),
session: service(),
mouseEnter() {
this.sendAction('onMouseEnter');
2015-05-24 00:47:23 -05:00
},
actions: {
toggleAutoNav() {
this.sendAction('toggleMaximise');
2015-05-24 00:47:23 -05:00
},
showMarkdownHelp() {
this.sendAction('showMarkdownHelp');
},
closeMobileMenu() {
this.sendAction('closeMobileMenu');
},
openAutoNav() {
this.sendAction('openAutoNav');
2015-05-24 00:47:23 -05:00
}
}
});