Skip to content

A platform for community discussion. Free, open, simple.

FIX: Refresh logic in discovery topic lists (#15489)

David Taylorf94c01b2337a
diff --git a/app/assets/javascripts/discourse/app/controllers/discovery/topics.js b/app/assets/javascripts/discourse/app/controllers/discovery/topics.js
index f19fbdcf225..efc5d66e2c9 100644
--- a/app/assets/javascripts/discourse/app/controllers/discovery/topics.js
+++ b/app/assets/javascripts/discourse/app/controllers/discovery/topics.js
@@ -11,6 +11,7 @@ import { endWith } from "discourse/lib/computed";
import { routeAction } from "discourse/helpers/route-action";
import { inject as service } from "@ember/service";
import { userPath } from "discourse/lib/url";
+import { action } from "@ember/object";
const controllerOpts = {
discovery: controller(),
@@ -32,6 +33,18 @@ const controllerOpts = {
selected: null,
+ // Remove these actions which are defined in `DiscoveryController`
+ // We want them to bubble in DiscoveryTopicsController
+ @action
+ loadingBegan() {
+ return true;
+ },
+
+ @action
+ loadingComplete() {
+ return true;
+ },
+
@discourseComputed("model.filter", "model.topics.length")
showDismissRead(filter, topicsLength) {
return this._isFilterPage(filter, "unread") && topicsLength > 0;