mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
FIX: Descriptions not showing for some site setting types (#26399)
Descriptions for the `category-list`, `file-size-restriction` and `file-types-list` site/theme settings aren't rendered due to a bug that was introduced when those components were migrated to Glimmer components. This commit fixes the bug which is that arguments passed to .gjs components should be accessed as `@argument` and not `this.arugment` inside the `<template>` tag.
This commit is contained in:
parent
2146ab492b
commit
f79f9e236a
|
@ -51,8 +51,8 @@ export default class CategoryList extends Component {
|
|||
@onChange={{this.onChangeSelectedCategories}}
|
||||
/>
|
||||
|
||||
<SiteSettingsDescription @description={{this.setting.description}} />
|
||||
<SettingValidationMessage @message={{this.validationMessage}} />
|
||||
<SiteSettingsDescription @description={{@setting.description}} />
|
||||
<SettingValidationMessage @message={{@validationMessage}} />
|
||||
</div>
|
||||
</template>
|
||||
}
|
||||
|
|
|
@ -29,6 +29,6 @@ export default class FileSizeRestriction extends Component {
|
|||
/>
|
||||
|
||||
<SettingValidationMessage @message={{this.validationMessage}} />
|
||||
<SiteSettingsDescription @description={{this.setting.description}} />
|
||||
<SiteSettingsDescription @description={{@setting.description}} />
|
||||
</template>
|
||||
}
|
||||
|
|
|
@ -146,7 +146,7 @@ export default class FileTypesList extends Component {
|
|||
class="btn file-types-list__button document"
|
||||
/>
|
||||
|
||||
<SettingValidationMessage @message={{this.validationMessage}} />
|
||||
<SiteSettingsDescription @description={{this.setting.description}} />
|
||||
<SettingValidationMessage @message={{@validationMessage}} />
|
||||
<SiteSettingsDescription @description={{@setting.description}} />
|
||||
</template>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user