FIX: Correctly reset `controllerReady` prop (#18727)
This commit is contained in:
parent
ab330a98ad
commit
589a249a65
|
@ -71,6 +71,7 @@ export default Controller.extend(bufferedProperty("model"), {
|
||||||
currentPostId: null,
|
currentPostId: null,
|
||||||
userLastReadPostNumber: null,
|
userLastReadPostNumber: null,
|
||||||
highestPostNumber: null,
|
highestPostNumber: null,
|
||||||
|
controllerReady: false,
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
|
@ -16,16 +16,9 @@ const SCROLL_DELAY = 500;
|
||||||
const TopicRoute = DiscourseRoute.extend({
|
const TopicRoute = DiscourseRoute.extend({
|
||||||
screenTrack: service(),
|
screenTrack: service(),
|
||||||
|
|
||||||
init() {
|
scheduledReplace: null,
|
||||||
this._super(...arguments);
|
lastScrollPos: null,
|
||||||
|
isTransitioning: false,
|
||||||
this.setProperties({
|
|
||||||
isTransitioning: false,
|
|
||||||
scheduledReplace: null,
|
|
||||||
lastScrollPos: null,
|
|
||||||
controllerReady: true,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
redirect() {
|
redirect() {
|
||||||
return this.redirectIfLoginRequired();
|
return this.redirectIfLoginRequired();
|
||||||
|
@ -359,6 +352,7 @@ const TopicRoute = DiscourseRoute.extend({
|
||||||
model,
|
model,
|
||||||
editingTopic: false,
|
editingTopic: false,
|
||||||
firstPostExpanded: false,
|
firstPostExpanded: false,
|
||||||
|
controllerReady: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.searchService.set("searchContext", model.get("searchContext"));
|
this.searchService.set("searchContext", model.get("searchContext"));
|
||||||
|
|
Loading…
Reference in New Issue