From 16f3d1a3206345757ad8d6889e71e8e33d485ee6 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Mon, 26 Jan 2026 17:15:36 +0100 Subject: [PATCH] =?UTF-8?q?Verbessere=20Fehlerbehandlung=20beim=20Geschenk?= =?UTF-8?q?eversand:=20F=C3=BCge=20Unterst=C3=BCtzung=20f=C3=BCr=20Retry-N?= =?UTF-8?q?achricht=20und=20verbessere=20die=20Lokalisierung=20der=20Fehle?= =?UTF-8?q?rmeldungen=20in=20FamilyView=20hinzu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/falukant/FamilyView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/falukant/FamilyView.vue b/frontend/src/views/falukant/FamilyView.vue index 459bab1..8aa7e97 100644 --- a/frontend/src/views/falukant/FamilyView.vue +++ b/frontend/src/views/falukant/FamilyView.vue @@ -355,15 +355,16 @@ export default { console.log(error.response); if (error.response?.status === 412) { const retryAtIso = error.response?.data?.retryAt; + const code = error.response?.data?.error || error.response?.data?.message; if (retryAtIso) { const retryStr = new Date(retryAtIso).toLocaleString(navigator.language, { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' }); - const baseMsg = this.$t(`falukant.family.sendgift.error.${error.response.data.error}`); + const baseMsg = this.$t(`falukant.family.sendgift.error.${code}`); this.$root.$refs.errorDialog.open(`${baseMsg} — ${this.$t('falukant.family.sendgift.nextGiftAt')}: ${retryStr}`); } else { - this.$root.$refs.errorDialog.open(`tr:falukant.family.sendgift.error.${error.response.data.error}`); + this.$root.$refs.errorDialog.open(`tr:falukant.family.sendgift.error.${code}`); } } else { this.$root.$refs.errorDialog.open(`tr:falukant.family.sendgift.error.generic`);