FIX: clear tag filter when changing category filter
This commit is contained in:
parent
3505a13bea
commit
4d58a00387
|
@ -140,16 +140,6 @@ export default Discourse.Route.extend({
|
|||
didTransition() {
|
||||
this.controllerFor("tags.show")._showFooter();
|
||||
return true;
|
||||
},
|
||||
|
||||
willTransition(transition) {
|
||||
if (!Discourse.SiteSettings.show_filter_by_tag) { return true; }
|
||||
|
||||
if ((transition.targetName.indexOf("discovery.parentCategory") !== -1 ||
|
||||
transition.targetName.indexOf("discovery.category") !== -1) && !transition.queryParams.allTags ) {
|
||||
this.transitionTo("/tags" + transition.intent.url + "/" + this.currentModel.get("id"));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue