Themes(guideposts): Clean tags when changing

This commit is contained in:
Robin van der Linde 2025-03-13 22:19:42 +01:00
parent d2ed83972f
commit c465f756d6
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D

View file

@ -144,7 +144,10 @@
"type": "string", "type": "string",
"placeholder": { "placeholder": {
"en": "Name on the guidepost" "en": "Name on the guidepost"
} },
"addExtraTags": [
"noname="
]
}, },
"render": { "render": {
"en": "Name noted on the guidepost: {name}" "en": "Name noted on the guidepost: {name}"
@ -155,6 +158,11 @@
"then": { "then": {
"en": "There is no name noted on this guidepost" "en": "There is no name noted on this guidepost"
} }
},
{
"addExtraTags": [
"name="
]
} }
] ]
}, },
@ -168,7 +176,10 @@
"type": "string", "type": "string",
"placeholder": { "placeholder": {
"en": "Reference number of the guidepost" "en": "Reference number of the guidepost"
} },
"addExtraTags": [
"noref="
]
}, },
"render": { "render": {
"en": "Reference number of the guidepost: {ref}" "en": "Reference number of the guidepost: {ref}"
@ -178,7 +189,10 @@
"if": "noref=yes", "if": "noref=yes",
"then": { "then": {
"en": "There is no reference number noted on this guidepost" "en": "There is no reference number noted on this guidepost"
} },
"addExtraTags": [
"ref="
]
} }
] ]
}, },
@ -192,7 +206,10 @@
"type": "float", "type": "float",
"placeholder": { "placeholder": {
"en": "Elevation on the guidepost (in meters)" "en": "Elevation on the guidepost (in meters)"
} },
"addExtraTags": [
"noele="
]
}, },
"render": { "render": {
"en": "Elevation noted on the guidepost: {ele} m" "en": "Elevation noted on the guidepost: {ele} m"
@ -202,7 +219,10 @@
"if": "noele=yes", "if": "noele=yes",
"then": { "then": {
"en": "There is no elevation noted on this guidepost" "en": "There is no elevation noted on this guidepost"
} },
"addExtraTags": [
"ele="
]
} }
] ]
} }