Ghost/core/client/app/components/gh-nav-menu.js

30 lines
601 B
JavaScript
Raw Normal View History

2015-05-24 08:47:23 +03:00
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'nav',
classNames: ['gh-nav'],
classNameBindings: ['open'],
config: Ember.inject.service(),
2015-05-24 08:47:23 +03:00
open: false,
mouseEnter: function () {
this.sendAction('onMouseEnter');
2015-05-24 08:47:23 +03:00
},
actions: {
toggleAutoNav: function () {
this.sendAction('toggleMaximise');
2015-05-24 08:47:23 +03:00
},
openModal: function (modal) {
2015-05-24 08:47:23 +03:00
this.sendAction('openModal', modal);
},
closeMobileMenu: function () {
this.sendAction('closeMobileMenu');
2015-05-24 08:47:23 +03:00
}
}
});