Add location locking functionality

This commit is contained in:
Pieter Vander Vennet 2021-03-14 20:14:51 +01:00
parent 94c0b8667a
commit 19582853f5
5 changed files with 34 additions and 5 deletions

View file

@ -15,6 +15,8 @@ export default class TagRenderingConfig {
readonly render?: Translation;
readonly question?: Translation;
readonly condition?: TagsFilter;
readonly configuration_warnings : string[] = []
readonly freeform?: {
readonly key: string,
@ -152,7 +154,7 @@ export default class TagRenderingConfig {
for (const expectedKey of keys) {
if(usedKeys.indexOf(expectedKey) < 0){
const msg = `${context}.mappings[${i}]: This mapping only defines values for ${usedKeys.join(', ')}, but it should also give a value for ${expectedKey}`
console.warn(msg)
this.configuration_warnings.push(msg)
}
}
}