0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/app/components/gh-nav-menu.js
2015-05-24 01:42:59 -05:00

29 lines
544 B
JavaScript

import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'nav',
classNames: ['gh-nav'],
classNameBindings: ['open'],
open: false,
autoNav: null,
mouseEnter: function () {
if (!this.get('autoNav')) {
return;
}
this.set('open', true);
},
actions: {
toggleMaximise: function () {
this.sendAction('toggleMaximise');
},
openModal: function (modal) {
this.sendAction('openModal', modal);
}
}
});