Fix: actually search for keywords in theme view

This commit is contained in:
Pieter Vander Vennet 2024-08-27 21:33:47 +02:00
parent 821c1fabd7
commit cdc1e05499
9 changed files with 193 additions and 95 deletions

View file

@ -29,6 +29,7 @@ export default class LayerConfig extends WithContextLoader {
public readonly id: string
public readonly name: Translation
public readonly description: Translation
public readonly searchTerms: Record<string, string[]>
/**
* Only 'null' for special, privileged layers
*/
@ -113,8 +114,8 @@ export default class LayerConfig extends WithContextLoader {
json.description = undefined
}
}
this.description = Translations.T(json.description, translationContext + ".description")
this.searchTerms = json.searchTerms ?? {}
this.calculatedTags = undefined
if (json.calculatedTags !== undefined) {