mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: tag filter dropdown menu is scoped to user and category
This commit is contained in:
@@ -67,9 +67,6 @@ export default (filter, params) => {
|
||||
return findTopicList(this.store, this.topicTrackingState, listFilter, findOpts, extras).then(list => {
|
||||
TopicList.hideUniformCategory(list, category);
|
||||
this.set('topics', list);
|
||||
if (list.topic_list.tags) {
|
||||
Discourse.Site.currentProp('top_tags', list.topic_list.tags);
|
||||
}
|
||||
return list;
|
||||
});
|
||||
},
|
||||
|
||||
@@ -54,6 +54,9 @@ function findTopicList(store, tracking, filter, filterParams, extras) {
|
||||
tracking.trackIncoming(list.filter);
|
||||
}
|
||||
Discourse.Session.currentProp('topicList', list);
|
||||
if (list.topic_list && list.topic_list.tags) {
|
||||
Discourse.Site.currentProp('top_tags', list.topic_list.tags);
|
||||
}
|
||||
return list;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -75,9 +75,6 @@ export default Discourse.Route.extend({
|
||||
return findTopicList(this.store, this.topicTrackingState, params.filter, params, {}).then(function(list) {
|
||||
controller.set('list', list);
|
||||
controller.set('canCreateTopic', list.get('can_create_topic'));
|
||||
if (list.topic_list.tags) {
|
||||
Discourse.Site.currentProp('top_tags', list.topic_list.tags);
|
||||
}
|
||||
controller.set('loading', false);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user