mirror of
https://github.com/discourse/discourse.git
synced 2025-01-20 00:42:58 +08: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";
|
||||
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">
|
||||
{{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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user