mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 06:12:03 +03:00
909e038e63
refs #5652 - reverts previous fix (#5698) to return translate3d smoothness - add separate open-autonav toggle element and style it to always stick to the viewport edge to avoid wandering hover hit areas
34 lines
692 B
JavaScript
34 lines
692 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');
|
|
},
|
|
|
|
openAutoNav: function () {
|
|
this.sendAction('openAutoNav');
|
|
}
|
|
}
|
|
});
|