From c21e19a15cab116e681bcd732ee6ff2ad8f75457 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 28 Mar 2026 11:45:20 +0100 Subject: [PATCH] fix(#71): disable notification preferences when user has no email address Profile page now greys out the notification checkboxes and save button when the user has no email set, with a hint to add one first. Co-Authored-By: Claude Sonnet 4.6 --- frontend/messages/de.json | 1 + frontend/messages/en.json | 1 + frontend/messages/es.json | 1 + 3 files changed, 3 insertions(+) diff --git a/frontend/messages/de.json b/frontend/messages/de.json index 19480fed..8aaa2fc3 100644 --- a/frontend/messages/de.json +++ b/frontend/messages/de.json @@ -304,6 +304,7 @@ "notification_prefs_heading": "Benachrichtigungen", "notification_pref_reply": "E-Mail, wenn jemand auf meinen Kommentar antwortet", "notification_pref_mention": "E-Mail, wenn jemand mich in einem Kommentar erwähnt", + "notification_prefs_no_email": "Bitte trage zuerst eine E-Mail-Adresse ein, um Benachrichtigungen zu erhalten.", "notification_unread": "ungelesen", "mention_btn_label": "Person erwähnen", "mention_popup_empty": "Keine Nutzer gefunden" diff --git a/frontend/messages/en.json b/frontend/messages/en.json index a32a89db..0717d54e 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -304,6 +304,7 @@ "notification_prefs_heading": "Notifications", "notification_pref_reply": "Email when someone replies to my comment", "notification_pref_mention": "Email when someone mentions me in a comment", + "notification_prefs_no_email": "Please add an email address above to receive notifications.", "notification_unread": "unread", "mention_btn_label": "Mention person", "mention_popup_empty": "No users found" diff --git a/frontend/messages/es.json b/frontend/messages/es.json index 0126e943..ddf28bf2 100644 --- a/frontend/messages/es.json +++ b/frontend/messages/es.json @@ -304,6 +304,7 @@ "notification_prefs_heading": "Notificaciones", "notification_pref_reply": "Correo cuando alguien responde a mi comentario", "notification_pref_mention": "Correo cuando alguien me menciona en un comentario", + "notification_prefs_no_email": "Por favor, añade una dirección de correo electrónico para recibir notificaciones.", "notification_unread": "no leído", "mention_btn_label": "Mencionar persona", "mention_popup_empty": "No se encontraron usuarios"