1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 16:07:34 +02:00

Restore comment

I love small diffs.
This commit is contained in:
Franz Liedke
2020-09-11 18:45:35 +02:00
parent 383a7e559f
commit 0e715a8c40

View File

@@ -29,6 +29,10 @@ export default class IndexPage extends Page {
this.lastDiscussion = app.previous.get('discussion'); this.lastDiscussion = app.previous.get('discussion');
} }
// If the user is coming from the discussion list, then they have either
// just switched one of the parameters (filter, sort, search) or they
// probably want to refresh the results. We will clear the discussion list
// cache so that results are reloaded.
if (app.previous.matches(IndexPage)) { if (app.previous.matches(IndexPage)) {
app.discussions.clear(); app.discussions.clear();
} }