mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
29 lines
544 B
JavaScript
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);
|
|
}
|
|
}
|
|
});
|