Ghost/ghost/admin/app/components/gh-nav-menu.js

21 lines
516 B
JavaScript
Raw Normal View History

import Component from '@glimmer/component';
import {action} from '@ember/object';
import {schedule} from '@ember/runloop';
import {inject as service} from '@ember/service';
import {tracked} from '@glimmer/tracking';
export default class GhNavMenuComponent extends Component {
@service settings;
@service ui;
@service session;
@tracked firstRender = true;
@action
updateFirstRender() {
schedule('afterRender', this, () => {
this.firstRender = false;
});
}
}