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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user