Themes(toilets): add questions about the changing tables

This commit is contained in:
Pieter Vander Vennet 2025-04-08 04:41:08 +02:00
parent 848c2ba2c8
commit 95bc3a078d
2 changed files with 194 additions and 20 deletions

View file

@ -27,7 +27,7 @@
const _onlyForLabels = new Set(onlyForLabels)
/**
* If set, only questions _not_ having these labels will be shown.
* This is used for a partial questionbox
* This is used for a partial questionbox. If both 'onlyFor' and 'notFor' are set, questions must accept both
*/
export let notForLabels: string[] | undefined = undefined
const _notForLabels = new Set(notForLabels)
@ -44,7 +44,7 @@
return true
}
const baseQuestions = (layer?.tagRenderings ?? [])?.filter(
let baseQuestions = (layer?.tagRenderings ?? [])?.filter(
(tr) => allowed(tr.labels) && tr.question !== undefined
)
@ -119,7 +119,6 @@
}, 50)
}
</script>
{#if $loginEnabled}
<div
bind:this={questionboxElem}