Merge branch 'develop' into sauna

This commit is contained in:
Pieter Vander Vennet 2025-07-04 17:58:33 +02:00
commit 70a6808b5e
13 changed files with 27 additions and 19 deletions

View file

@ -166,8 +166,7 @@
"'; did you perhaps mean one of: " +
Utils.sortedByLevenshteinDistance(
type,
Validators.AllValidators.map((v) => v.name),
(v) => v
Validators.AllValidators.map((v) => v.name)
)
.slice(0, 5)
.join(", ")

View file

@ -47,7 +47,7 @@ export default class DistanceValidator extends Validator {
if (bg && eliCategory.indexOf(bg) < 0) {
return (
"The given background layer is not a recognized ELI-type. Perhaps you meant one of " +
Utils.sortedByLevenshteinDistance(bg, eliCategory, (x) => x).slice(0, 5)
Utils.sortedByLevenshteinDistance(bg, eliCategory).slice(0, 5)
)
}
if (typeof args["zoom"] !== "number") {

View file

@ -198,7 +198,7 @@ class QrLogin extends SpecialVisualizationSvelte {
class Logout extends SpecialVisualizationSvelte {
funcName = "logout"
args = []
needsUrls = [Constants.osmAuthConfig.url]
needsUrls = [Constants.osmAuthConfig]
docs = "Shows a button where the user can log out"
group = "settings"