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 });
|
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) {
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue