Ghost/core/client/app/components/gh-nav-menu.js
Jason Williams 42166c8d9f Update Ember to 1.13.2
- Refactor to handle deprecations including removal of
  all Views, ArrayControllers, and ItemControllers.
2015-06-24 11:47:28 -05:00

30 lines
601 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: function () {
this.sendAction('onMouseEnter');
},
actions: {
toggleAutoNav: function () {
this.sendAction('toggleMaximise');
},
openModal: function (modal) {
this.sendAction('openModal', modal);
},
closeMobileMenu: function () {
this.sendAction('closeMobileMenu');
}
}
});