mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: Tags plugin uses Discourse.TopicList.list
This commit is contained in:
parent
4919ec4c44
commit
a1cbd31166
@ -152,6 +152,11 @@ TopicList.reopenClass({
|
|||||||
return store.findFiltered('topicList', {filter, params});
|
return store.findFiltered('topicList', {filter, params});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
list(filter) {
|
||||||
|
Ember.warn('`Discourse.TopicList.list` is deprecated. Use the store instead');
|
||||||
|
return this.find(filter);
|
||||||
|
},
|
||||||
|
|
||||||
// Sets `hideCategory` if all topics in the last have a particular category
|
// Sets `hideCategory` if all topics in the last have a particular category
|
||||||
hideUniformCategory(list, category) {
|
hideUniformCategory(list, category) {
|
||||||
const hideCategory = !list.get('topics').any(function (t) { return t.get('category') !== category; });
|
const hideCategory = !list.get('topics').any(function (t) { return t.get('category') !== category; });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user