diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index b7b91de0..dd435377 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -535,7 +535,12 @@ "text": "This action is irreversible. All data will be deleted and nothing can be recovered.", "title": "Delete account" }, - "title": "Actions" + "title": "Actions", + "logoutAllDevices": { + "title": "End All Sessions", + "text": "This will sign you out from all devices linked to your account.", + "button": "Log Out of All Devices" + } }, "devices": { "deviceNameLabel": "Device name", diff --git a/src/pages/parts/settings/AccountActionsPart.tsx b/src/pages/parts/settings/AccountActionsPart.tsx index f1e50dbf..801ea9b5 100644 --- a/src/pages/parts/settings/AccountActionsPart.tsx +++ b/src/pages/parts/settings/AccountActionsPart.tsx @@ -10,6 +10,8 @@ import { useAuthData } from "@/hooks/auth/useAuthData"; import { useBackendUrl } from "@/hooks/auth/useBackendUrl"; import { useAuthStore } from "@/stores/auth"; +import { signOutAllDevices } from "./DeviceListPart"; + export function AccountActionsPart() { const { t } = useTranslation(); const url = useBackendUrl(); @@ -29,6 +31,29 @@ export function AccountActionsPart() { return (
+ {t("settings.account.actions.logoutAllDevices.text")} +
+{props.name}