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.
This commit is contained in:
Robin Ward 2021-10-20 15:26:15 -04:00
parent b57b079ff2
commit e15bd194fd
1 changed files with 1 additions and 0 deletions

View File

@ -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();