allow themes to change the lock icon easily (#15309)

This commit is contained in:
Joe 2021-12-15 22:13:10 +08:00 committed by GitHub
parent 6afab87d50
commit 3b3e572ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,7 @@ export default Component.extend({
"anyLogos:with-logos:no-logos",
],
noCategoryStyle: equal("siteSettings.category_style", "none"),
lockIcon: "lock",
@discourseComputed("categories.[].uploaded_logo.url")
anyLogos() {

View File

@ -11,6 +11,7 @@ export default Component.extend({
"hasSubcategories:with-subcategories",
],
noCategoryStyle: equal("siteSettings.category_style", "none"),
lockIcon: "lock",
@discourseComputed("categories.[].uploaded_logo.url")
anyLogos() {

View File

@ -17,7 +17,7 @@
<h3>
{{category-title-before category=c}}
{{#if c.read_restricted}}
{{d-icon "lock"}}
{{d-icon lockIcon}}
{{/if}}
{{c.name}}
</h3>

View File

@ -20,7 +20,7 @@
<h3>
{{category-title-before category=c}}
{{#if c.read_restricted}}
{{d-icon "lock"}}
{{d-icon lockIcon}}
{{/if}}
{{c.name}}
</h3>