Ghost/ghost/admin/app/components/gh-content-cover.js
Kevin Ansfield 5e3de1c333 🎨 Removed auto hide/show navigation toggle (#1094)
no issue
- the autonav behaviour has outlasted it's usefulness - it was mostly useful for editing but the editor screen is now always fullscreen and the number of low-resolution screens has dropped significantly
- dropped the components and all supporting code associated with autonav behaviour
2019-01-10 15:00:07 +00:00

25 lines
430 B
JavaScript

/*
Implements a div for covering the page content
when in a menu context that, for example,
should be closed when the user clicks elsewhere.
Example:
```
{{gh-content-cover}}
```
**/
import Component from '@ember/component';
import {inject as service} from '@ember/service';
export default Component.extend({
ui: service(),
classNames: ['content-cover'],
click() {
this.get('ui').closeMenus();
}
});