forked from MapComplete/MapComplete
Themes: add toilet layers automatically if toilet information is included
This commit is contained in:
parent
cf7e005fd1
commit
af2636bfaa
8 changed files with 72 additions and 22 deletions
|
@ -805,9 +805,7 @@ class LayerOverviewUtils extends Script {
|
|||
const sourcePath = `./assets/layers/${id}/${id}.json`
|
||||
const targetPath = `./public/assets/generated/layers/${id}.json`
|
||||
|
||||
if (id === "questions") {
|
||||
layerState.set(id, "clean")
|
||||
} else if (LayerOverviewUtils.shouldBeUpdated(sourcePath, targetPath)) {
|
||||
if (LayerOverviewUtils.shouldBeUpdated(sourcePath, targetPath)) {
|
||||
layerState.set(id, "changed")
|
||||
} else {
|
||||
layerState.set(id, "clean")
|
||||
|
@ -816,10 +814,10 @@ class LayerOverviewUtils extends Script {
|
|||
const state = layerState.get(id)
|
||||
if (state !== "clean") {
|
||||
allClean = false
|
||||
console.log(`- ${id} (${state}; ${dirtyDeps.map(dd => dd + "*").join(", ")})`)
|
||||
console.log(`- ${id} (${state}; ${dirtyDeps.map(dd => dd + "*").join(", ")})`)
|
||||
}
|
||||
}
|
||||
if (allClean) {
|
||||
if (!allClean) {
|
||||
console.log("\n")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue