mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Facilitate replacing category lock icon in components
This commit is contained in:
parent
1a2156a0c2
commit
2567bb4a67
@ -1,4 +1,6 @@
|
|||||||
import Component from "@ember/component";
|
import Component from "@ember/component";
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
tagName: "h3"
|
tagName: "h3",
|
||||||
|
// icon name defined here so it can be easily overriden in theme components
|
||||||
|
lockIcon: "lock"
|
||||||
});
|
});
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="category-text-title">
|
<div class="category-text-title">
|
||||||
{{category-title-before category=category}}
|
{{category-title-before category=category}}
|
||||||
{{#if category.read_restricted}}
|
{{#if category.read_restricted}}
|
||||||
{{d-icon "lock"}}
|
{{d-icon lockIcon}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="category-name">{{dir-span category.name}}</span>
|
<span class="category-name">{{dir-span category.name}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user