Ghost/ghost/admin/app/components/gh-nav-menu.js

35 lines
729 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(),
session: 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');
},
openAutoNav: function () {
this.sendAction('openAutoNav');
2015-05-24 08:47:23 +03:00
}
}
});