mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
DEV: Clear filters when navigating to a post (#12557)
This commit is contained in:
parent
65ad8750c7
commit
524890c5e4
@ -370,7 +370,7 @@ const DiscourseURL = EmberObject.extend({
|
|||||||
opts.nearPost = topicController.get("model.highest_post_number");
|
opts.nearPost = topicController.get("model.highest_post_number");
|
||||||
}
|
}
|
||||||
|
|
||||||
opts.cancelSummary = true;
|
opts.cancelFilter = true;
|
||||||
|
|
||||||
postStream.refresh(opts).then(() => {
|
postStream.refresh(opts).then(() => {
|
||||||
const closest = postStream.closestPostNumberFor(opts.nearPost || 1);
|
const closest = postStream.closestPostNumberFor(opts.nearPost || 1);
|
||||||
|
@ -311,9 +311,9 @@ export default RestModel.extend({
|
|||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
opts.nearPost = parseInt(opts.nearPost, 10);
|
opts.nearPost = parseInt(opts.nearPost, 10);
|
||||||
|
|
||||||
if (opts.cancelSummary) {
|
if (opts.cancelFilter) {
|
||||||
this.set("summary", false);
|
this.cancelFilter();
|
||||||
delete opts.cancelSummary;
|
delete opts.cancelFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
const topic = this.topic;
|
const topic = this.topic;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user