mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
- 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
16 lines
468 B
JavaScript
16 lines
468 B
JavaScript
import Ember from 'ember';
|
|
import mobileQuery from 'ghost/utils/mobile';
|
|
|
|
var MobileContentView = Ember.View.extend({
|
|
// Ensure that loading this view brings it into view on mobile
|
|
showContent: function () {
|
|
if (mobileQuery.matches) {
|
|
var parent = this.get('parentView');
|
|
if (parent.showContent) {
|
|
parent.showContent();
|
|
}
|
|
}
|
|
}.on('didInsertElement')
|
|
});
|
|
|
|
export default MobileContentView;
|