mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
b71babfc51
no issue - bumped `ember-source`, `ember-data`, and `ember-cli` to latest 3.22.x versions - fixed errors caused by updating properties inside of a render - `<GhPublishMenu>` removed insta-call of `@setSaveType` when rendering sub-components in favour of pre-setting the default `@saveType` value when the underlying post status changes - updated `<GhNavMenu>` to use the run-loop to update the `firstRender` property once rendering has finished rather than mid-render
20 lines
494 B
JavaScript
20 lines
494 B
JavaScript
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;
|
|
|
|
@tracked firstRender = true;
|
|
|
|
@action
|
|
updateFirstRender() {
|
|
schedule('afterRender', this, () => {
|
|
this.firstRender = false;
|
|
});
|
|
}
|
|
}
|