forked from MapComplete/MapComplete
More styling of the dashboard
This commit is contained in:
parent
465497e6ca
commit
a90fa5cd63
5 changed files with 27 additions and 16 deletions
|
@ -44,7 +44,8 @@ export default class TagRenderingChart extends Combine {
|
|||
|
||||
const mappings = tagRendering.mappings ?? []
|
||||
if (mappings.length === 0 && tagRendering.freeform?.key === undefined) {
|
||||
super(["TagRendering", tagRendering.id, "does not have mapping or a freeform key - no stats can be made"])
|
||||
super([])
|
||||
this.SetClass("hidden")
|
||||
return;
|
||||
}
|
||||
let unknownCount = 0;
|
||||
|
@ -96,7 +97,8 @@ export default class TagRenderingChart extends Combine {
|
|||
}
|
||||
|
||||
if (unknownCount + notApplicable === features.length) {
|
||||
super(["No relevant data for ", tagRendering.id])
|
||||
super([])
|
||||
this.SetClass("hidden")
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue