diff --git a/webapp/src/locales/de.json b/webapp/src/locales/de.json index a014f09..568dd2f 100644 --- a/webapp/src/locales/de.json +++ b/webapp/src/locales/de.json @@ -527,6 +527,7 @@ }, "deviceadmin": { "DeviceManager": "Hardware-Einstellungen", + "ParseError": "Syntaxfehler in 'pin_mapping.json': {error}", "PinAssignment": "Anschlusseinstellungen", "SelectedProfile": "Ausgewähltes Profil:", "DefaultProfile": "(Standardeinstellungen)", diff --git a/webapp/src/locales/en.json b/webapp/src/locales/en.json index 4532861..b8eb208 100644 --- a/webapp/src/locales/en.json +++ b/webapp/src/locales/en.json @@ -527,6 +527,7 @@ }, "deviceadmin": { "DeviceManager": "Device-Manager", + "ParseError": "Parse error in 'pin_mapping.json': {error}", "PinAssignment": "Connection settings", "SelectedProfile": "Selected profile:", "DefaultProfile": "(Default settings)", diff --git a/webapp/src/locales/fr.json b/webapp/src/locales/fr.json index 9e3807e..5aa083c 100644 --- a/webapp/src/locales/fr.json +++ b/webapp/src/locales/fr.json @@ -527,6 +527,7 @@ }, "deviceadmin": { "DeviceManager": "Gestionnaire de périphériques", + "ParseError": "Erreur d'analyse dans 'pin_mapping.json': {error}", "PinAssignment": "Paramètres de connexion", "SelectedProfile": "Profil sélectionné", "DefaultProfile": "(Réglages par défaut)", diff --git a/webapp/src/utils/authentication.ts b/webapp/src/utils/authentication.ts index c993753..d1f87e3 100644 --- a/webapp/src/utils/authentication.ts +++ b/webapp/src/utils/authentication.ts @@ -73,10 +73,10 @@ export function handleResponse(response: Response, emitter: Emitter + 'percent') + }) }}
@@ -120,7 +120,7 @@ export default defineComponent({ BootstrapAlert, InputElement, PinInfo, - }, + }, data() { return { dataLoading: true, @@ -157,7 +157,12 @@ export default defineComponent({ this.pinMappingList = data; } ) - .catch(() => { + .catch((error) => { + if (error.status != 404) { + this.alertMessage = this.$t('deviceadmin.ParseError', { error: error.message }); + this.alertType = 'danger'; + this.showAlert = true; + } this.pinMappingList = Array(); }) .finally(() => {