Add 20km allowed zone icon (#347)
Co-authored-by: Gautier P <gautier_git@damsy.net>
This commit is contained in:
parent
1958f55f18
commit
779c720b7d
11 changed files with 296 additions and 24 deletions
|
|
@ -40,8 +40,16 @@ BR.Message = L.Class.extend({
|
|||
},
|
||||
|
||||
showError: function(err) {
|
||||
if (err == 'Error: target island detected for section 0\n') {
|
||||
if (err && err.message) err = err.message;
|
||||
|
||||
if (err == 'target island detected for section 0\n') {
|
||||
err = i18next.t('warning.no-route-found');
|
||||
} else if (err == 'no track found at pass=0\n') {
|
||||
err = i18next.t('warning.no-route-found');
|
||||
} else if (err == 'to-position not mapped in existing datafile\n') {
|
||||
err = i18next.t('warning.invalid-route-to');
|
||||
} else if (err == 'from-position not mapped in existing datafile\n') {
|
||||
err = i18next.t('warning.invalid-route-from');
|
||||
}
|
||||
this._show(err, 'error');
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue