FIX: Tags plugin uses `Discourse.TopicList.list`

This commit is contained in:
Robin Ward 2015-04-15 22:18:45 -04:00
parent 4919ec4c44
commit a1cbd31166
1 changed files with 5 additions and 0 deletions

View File

@ -152,6 +152,11 @@ TopicList.reopenClass({
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
hideUniformCategory(list, category) {
const hideCategory = !list.get('topics').any(function (t) { return t.get('category') !== category; });