From 823fbe854d00718f8a260d70d67fafcd795f5662 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 24 Mar 2026 16:26:49 -0500 Subject: [PATCH] Add warning/note when removing devices --- frontend/locales/en.json | 3 ++- frontend/locales/pt-BR.json | 4 ++-- frontend/locales/sk.json | 4 ++-- frontend/src/components/Session/EndSessionButton.tsx | 4 ++++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/locales/en.json b/frontend/locales/en.json index f3028c155..b949593b9 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -102,7 +102,8 @@ "heading": "The email address {{email}} is already in use." }, "end_session_button": { - "confirmation_modal_title": "Are you sure you want to end this session?", + "confirmation_modal_title": "Are you sure you want to remove this device?", + "confirmation_modal_body_text": "Make sure you always have access to another verified device or your recovery key to avoid losing your encrypted chat history.", "text": "Remove device" }, "error": { diff --git a/frontend/locales/pt-BR.json b/frontend/locales/pt-BR.json index bee110cae..c07cda686 100644 --- a/frontend/locales/pt-BR.json +++ b/frontend/locales/pt-BR.json @@ -125,7 +125,7 @@ "heading": "The email address {{email}} is already in use." }, "end_session_button": { - "confirmation_modal_title": "Are you sure you want to end this session?", + "confirmation_modal_title": "Are you sure you want to remove this device?", "text": "Remove device" }, "error": { @@ -398,4 +398,4 @@ "view_profile": "Veja as informações do seu perfil e os seus dados de contato." } } -} \ No newline at end of file +} diff --git a/frontend/locales/sk.json b/frontend/locales/sk.json index a43a7cf78..03f66839a 100644 --- a/frontend/locales/sk.json +++ b/frontend/locales/sk.json @@ -125,7 +125,7 @@ "heading": "The email address {{email}} is already in use." }, "end_session_button": { - "confirmation_modal_title": "Are you sure you want to end this session?", + "confirmation_modal_title": "Are you sure you want to remove this device?", "text": "Remove device" }, "error": { @@ -398,4 +398,4 @@ "view_profile": "Zobraziť informácie o vašom profile a kontaktné údaje" } } -} \ No newline at end of file +} diff --git a/frontend/src/components/Session/EndSessionButton.tsx b/frontend/src/components/Session/EndSessionButton.tsx index 8dd0af67d..58d432704 100644 --- a/frontend/src/components/Session/EndSessionButton.tsx +++ b/frontend/src/components/Session/EndSessionButton.tsx @@ -44,6 +44,10 @@ const EndSessionButton: React.FC< {t("frontend.end_session_button.confirmation_modal_title")} + + {t("frontend.end_session_button.confirmation_modal_body_text")} + + {children && {children}}