forked from MapComplete/MapComplete
Merge branch 'develop' into sauna
This commit is contained in:
commit
70a6808b5e
13 changed files with 27 additions and 19 deletions
|
@ -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(", ")
|
||||
|
|
|
@ -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") {
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue