mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
511d5d9b4c
closes #5951 - update to esa 1.0
35 lines
729 B
JavaScript
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');
|
|
}
|
|
}
|
|
});
|