From 5c9901209c74f685f991c79e637a36cc143cde01 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 11 Mar 2026 16:08:47 +0100 Subject: [PATCH] feat(clubSettings): enhance club settings UI with loading and error handling - Added loading and error states to the club settings view, improving user feedback during data retrieval. - Introduced new translations for error messages in the German locale, enhancing localization support. - Updated the save method to alert users when no club is selected, ensuring clarity in user actions. --- frontend/src/i18n/locales/de.json | 4 +- frontend/src/views/ClubSettings.vue | 71 +++++++++++++++++++++-------- 2 files changed, 55 insertions(+), 20 deletions(-) diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json index 3babd444..0c8b7add 100644 --- a/frontend/src/i18n/locales/de.json +++ b/frontend/src/i18n/locales/de.json @@ -735,7 +735,9 @@ "associationMemberNumberPlaceholder": "z. B. 12-3456", "save": "Speichern", "saved": "Gespeichert", - "saveFailed": "Speichern fehlgeschlagen" + "saveFailed": "Speichern fehlgeschlagen", + "loadFailed": "Einstellungen konnten nicht geladen werden", + "noClubSelected": "Bitte wählen Sie zuerst einen Verein aus." }, "predefinedActivities": { "title": "Vordefinierte Aktivitäten", diff --git a/frontend/src/views/ClubSettings.vue b/frontend/src/views/ClubSettings.vue index ad976043..21422cf9 100644 --- a/frontend/src/views/ClubSettings.vue +++ b/frontend/src/views/ClubSettings.vue @@ -26,7 +26,10 @@
-
+

{{ $t('clubSettings.noClubSelected') }}

+

{{ $t('common.loading') }}

+

{{ loadError }}

+

{{ $t('clubSettings.greetingText') }}

@@ -43,12 +46,12 @@

{{ $t('clubSettings.greetingHint') }}

-
+

{{ $t('clubSettings.associationMemberNumber') }}

-
+
{{ $t('clubSettings.saved') }} @@ -72,6 +75,7 @@