mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
87e54c0d54
closes #5951 - update to esa 1.0
34 lines
729 B
JavaScript
34 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');
|
|
}
|
|
}
|
|
});
|