forked from MapComplete/MapComplete
Merge latest develop
This commit is contained in:
commit
17450deb82
386 changed files with 12073 additions and 25528 deletions
|
|
@ -371,6 +371,10 @@ export default class LinkedDataLoader {
|
|||
const match = maxstay.match(/P([0-9]+)D/)
|
||||
if (match) {
|
||||
const days = Number(match[1])
|
||||
if (days === 30) {
|
||||
// 30 is the default which is set if velopark didn't know the actual value
|
||||
return undefined
|
||||
}
|
||||
if (days === 1) {
|
||||
return "1 day"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export class LocalStorageSource {
|
|||
}
|
||||
const source = new UIEventSource<string>(saved ?? defaultValue, "localstorage:" + key)
|
||||
|
||||
if(!Utils.runningFromConsole){
|
||||
if (!Utils.runningFromConsole) {
|
||||
source.addCallback((data) => {
|
||||
if (data === undefined || data === "" || data === null) {
|
||||
localStorage.removeItem(key)
|
||||
|
|
|
|||
|
|
@ -80,7 +80,10 @@ export default class VeloparkLoader {
|
|||
1,
|
||||
g.maximumParkingDuration.length - 1
|
||||
)
|
||||
properties.maxstay = duration + " days"
|
||||
if (duration !== "30") {
|
||||
// We don't set maxstay if it is 30, they are the default value that velopark chose for "unknown"
|
||||
properties.maxstay = duration + " days"
|
||||
}
|
||||
}
|
||||
properties.access = g.publicAccess ?? "yes" ? "yes" : "no"
|
||||
const prefix = "http://schema.org/"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue