forked from MapComplete/MapComplete
feat(themes): add questionHint to give extra information about a question
This commit is contained in:
parent
60f3499eb0
commit
d7fe3a056e
5 changed files with 42 additions and 4 deletions
|
@ -47,6 +47,7 @@ export default class TagRenderingConfig {
|
|||
public readonly group: string
|
||||
public readonly render?: TypedTranslation<object>
|
||||
public readonly question?: TypedTranslation<object>
|
||||
public readonly questionhint?: TypedTranslation<object>
|
||||
public readonly condition?: TagsFilter
|
||||
public readonly description?: Translation
|
||||
|
||||
|
@ -119,6 +120,7 @@ export default class TagRenderingConfig {
|
|||
this.labels = json.labels ?? []
|
||||
this.render = Translations.T(json.render, translationKey + ".render")
|
||||
this.question = Translations.T(json.question, translationKey + ".question")
|
||||
this.question = Translations.T(json.questionHint, translationKey + ".questionHint")
|
||||
this.description = Translations.T(json.description, translationKey + ".description")
|
||||
this.condition = TagUtils.Tag(json.condition ?? { and: [] }, `${context}.condition`)
|
||||
if (json.freeform) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue