Extension points for topic list on discovery page

This commit is contained in:
Robin Ward 2017-10-11 14:49:38 -04:00
parent 8a8d3a3a7e
commit d43fa4d584
2 changed files with 10 additions and 1 deletions

View File

@ -25,6 +25,9 @@ const controllerOpts = {
this.setProperties({ order: "default", ascending: false });
},
// Overwrite this to perform client side filtering of topics, if desired
filteredTopics: Ember.computed.alias('model.topics'),
actions: {
changeSort(sortBy) {

View File

@ -32,6 +32,12 @@
{{/if}}
{{#if hasTopics}}
{{plugin-outlet
name="discovery-before-topic-list"
tagName=""
args=(hash model=model category=category)}}
{{topic-list
highlightLastVisited=true
top=top
@ -48,7 +54,7 @@
expandGloballyPinned=expandGloballyPinned
expandAllPinned=expandAllPinned
category=category
topics=model.topics}}
topics=filteredTopics}}
{{/if}}
{{/discovery-topics-list}}