UX: Sometimes the footer would show up while refreshing a list route

UX: Sometimes the footer would show up while refreshing a list route

This happens because the state of canLoadMore is not cleared as the refresh occurs, which is enough to make the page think a footer should be displayed.

No tests here because it’s tricky to test refreshing and none of our existing acceptance tests seem to.

diff --git a/app/assets/javascripts/discourse/app/controllers/discovery/topics.js b/app/assets/javascripts/discourse/app/controllers/discovery/topics.js
index 347c7c3..b7aefc9 100644
--- a/app/assets/javascripts/discourse/app/controllers/discovery/topics.js
+++ b/app/assets/javascripts/discourse/app/controllers/discovery/topics.js
@@ -74,6 +74,7 @@ const controllerOpts = {
       // router and ember throws an error due to missing `handlerInfos`.
       // Lesson learned: Don't call `loading` yourself.
       this.set("discovery.loading", true);
+      this.set("model.canLoadMore", true);
 
       this.topicTrackingState.resetTracking();
 

GitHub sha: e15bd194fde2c5ec21b216e7b594c543e8dc2739

This commit appears in #14666 which was approved by markvanlan and ZogStriP. It was merged by eviltrout.