FIX: Correctly reset `controllerReady` prop (#18727)

This commit is contained in:
Jarek Radosz 2022-10-24 23:00:37 +02:00 committed by GitHub
parent ab330a98ad
commit 589a249a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 10 deletions

View File

@ -71,6 +71,7 @@ export default Controller.extend(bufferedProperty("model"), {
currentPostId: null,
userLastReadPostNumber: null,
highestPostNumber: null,
controllerReady: false,
init() {
this._super(...arguments);

View File

@ -16,16 +16,9 @@ const SCROLL_DELAY = 500;
const TopicRoute = DiscourseRoute.extend({
screenTrack: service(),
init() {
this._super(...arguments);
this.setProperties({
isTransitioning: false,
scheduledReplace: null,
lastScrollPos: null,
controllerReady: true,
});
},
scheduledReplace: null,
lastScrollPos: null,
isTransitioning: false,
redirect() {
return this.redirectIfLoginRequired();
@ -359,6 +352,7 @@ const TopicRoute = DiscourseRoute.extend({
model,
editingTopic: false,
firstPostExpanded: false,
controllerReady: false,
});
this.searchService.set("searchContext", model.get("searchContext"));