mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
c7a9e726e2
- Adds gh-view-title component to implement mobile menu button for titles on any page - Refactors the `content-cover` out into the application template - Fix various z-index issues with content-cover and gh-alert - Move `.settings-menu-expanded` application view state from body to `.gh-viewport` - Unify nav menu / mobile menu actions and code
25 lines
503 B
JavaScript
25 lines
503 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: {
|
|
toggleMaximise: function () {
|
|
this.sendAction('toggleMaximise');
|
|
},
|
|
|
|
openModal: function (modal) {
|
|
this.sendAction('openModal', modal);
|
|
}
|
|
}
|
|
});
|