mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
42166c8d9f
- Refactor to handle deprecations including removal of all Views, ArrayControllers, and ItemControllers.
30 lines
601 B
JavaScript
30 lines
601 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
tagName: 'nav',
|
|
classNames: ['gh-nav'],
|
|
classNameBindings: ['open'],
|
|
|
|
config: 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');
|
|
}
|
|
}
|
|
});
|