Ghost/ghost/admin/app/components/gh-nav-menu.js
Austin Burdine 511d5d9b4c deps: ember-simple-auth@1.0.0
closes #5951
- update to esa 1.0
2015-10-18 13:17:02 -05:00

35 lines
729 B
JavaScript

import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'nav',
classNames: ['gh-nav'],
classNameBindings: ['open'],
config: Ember.inject.service(),
session: 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');
},
openAutoNav: function () {
this.sendAction('openAutoNav');
}
}
});