Added the required hooks for discourse-favorites plugin.

This commit is contained in:
Bianca Nenciu 2018-02-22 23:58:53 +02:00
parent 6b67192d99
commit 184d521fc9
5 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,3 @@
export default Ember.Component.extend({
tagName: ''
});

View File

@ -11,6 +11,7 @@
{{#if c.read_restricted}}
{{d-icon 'lock'}}
{{/if}}
{{category-title-before category=c}}
{{c.name}}
</h3>
</a>

View File

@ -24,6 +24,7 @@
<div class='subcategories'>
{{#each c.subcategories as |s|}}
<span class='subcategory'>
{{category-title-before category=s}}
{{category-link s hideParent="true"}}
{{category-unread category=s}}
</span>

View File

@ -0,0 +1 @@
{{plugin-outlet name="category-title-before" noTags=true args=(hash category=category)}}

View File

@ -1,3 +1,4 @@
{{category-title-before category=category}}
<a class="category-title-link" href={{category.url}}>
{{#if category.read_restricted}}
{{d-icon 'lock'}}