forked from MapComplete/MapComplete
UI(specialVis): only 'leftover-questions' now hides tagRenderings with 'hidden'-label by default, rename variables for imageCarousel and use ';'-separated values
This commit is contained in:
parent
e92dae92b7
commit
b507f799ed
4 changed files with 12 additions and 24 deletions
|
|
@ -29,7 +29,7 @@ class QuestionViz implements SpecialVisualizationSvelte {
|
|||
},
|
||||
{
|
||||
name: "blacklisted-labels",
|
||||
doc: "One or more ';'-separated labels of questions which should _not_ be included. Default: 'hidden'",
|
||||
doc: "One or more ';'-separated labels of questions which should _not_ be included. Note that the questionbox which is added by default will blacklist 'hidden'"
|
||||
},
|
||||
]
|
||||
svelteBased = true
|
||||
|
|
@ -50,9 +50,6 @@ class QuestionViz implements SpecialVisualizationSvelte {
|
|||
?.split(";")
|
||||
?.map((s) => s.trim())
|
||||
?.filter((s) => s !== "")
|
||||
if (blacklist.length === 0) {
|
||||
blacklist.push("hidden")
|
||||
}
|
||||
return new SvelteUIElement(Questionbox, {
|
||||
layer,
|
||||
tags,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue