DEV: Facilitate replacing category lock icon in components

This commit is contained in:
Penar Musaraj 2020-08-17 16:08:08 -04:00
parent 1a2156a0c2
commit 2567bb4a67
No known key found for this signature in database
GPG Key ID: E390435D881FF0F7
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
import Component from "@ember/component";
export default Component.extend({
tagName: "h3"
tagName: "h3",
// icon name defined here so it can be easily overriden in theme components
lockIcon: "lock"
});

View File

@ -2,7 +2,7 @@
<div class="category-text-title">
{{category-title-before category=category}}
{{#if category.read_restricted}}
{{d-icon "lock"}}
{{d-icon lockIcon}}
{{/if}}
<span class="category-name">{{dir-span category.name}}</span>
</div>