Fix silent failure for some Osmose error types

When I added special handling for mapillary errors the code was trying
to access translation strings nested under the error category (which
doesn't exist for all error types). This code is now moved into it's own
function so that variable hoisting doesn't run it for non-applicable
error types and prevent them from working.

- Also adds support for error type 3040 (bad tag value)
- Updated the Osmose sidebar UI title
This commit is contained in:
SilentSpike
2019-12-30 16:20:54 +00:00
parent a068cdfc59
commit 896ed762e0
6 changed files with 34 additions and 9 deletions
+4 -1
View File
@@ -34,7 +34,7 @@
}
},
"osmose": {
"items": ["0", "1040", "1050", "1070", "1150", "1280", "3161", "3250", "4080", "7040", "8300", "8360"],
"items": ["0", "1040", "1050", "1070", "1150", "1280", "3040", "3161", "3250", "4080", "7040", "8300", "8360"],
"errorTypes": {
"0-1": {
"icon": "maki-home"
@@ -78,6 +78,9 @@
"1280-1": {
"icon": "maki-attraction"
},
"3040-3040": {
"icon": "far-times-circle"
},
"3161-1": {
"icon": "maki-parking"
},