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:
parent
b57b079ff2
commit
e15bd194fd
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue