mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 18:33:28 -05:00
FIX: Correctly reset controllerReady prop (#18727)
This commit is contained in:
@@ -71,6 +71,7 @@ export default Controller.extend(bufferedProperty("model"), {
|
||||
currentPostId: null,
|
||||
userLastReadPostNumber: null,
|
||||
highestPostNumber: null,
|
||||
controllerReady: false,
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user