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

37 lines
694 B
JavaScript
Raw Normal View History

2015-05-24 00:47:23 -05:00
import Ember from 'ember';
const {Component, inject} = Ember;
export default Component.extend({
2015-05-24 00:47:23 -05:00
tagName: 'nav',
classNames: ['gh-nav'],
classNameBindings: ['open'],
open: false,
config: inject.service(),
session: inject.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
}
}
});