Extension points for topic list on discovery page
This commit is contained in:
parent
8a8d3a3a7e
commit
d43fa4d584
|
@ -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) {
|
||||
|
|
|
@ -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}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue