mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
30 lines
544 B
JavaScript
30 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);
|
||
|
}
|
||
|
}
|
||
|
});
|