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 }); this.setProperties({ order: "default", ascending: false });
}, },
// Overwrite this to perform client side filtering of topics, if desired
filteredTopics: Ember.computed.alias('model.topics'),
actions: { actions: {
changeSort(sortBy) { changeSort(sortBy) {

View File

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