From b5ca951b323b4eeb3d6b901980264aca86c0050e Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Tue, 7 May 2024 13:14:15 +0200 Subject: [PATCH] Add locked status to users (#413) --- README.md | 2 +- src/components/users.tsx | 2 ++ src/i18n/de.ts | 1 + src/i18n/en.ts | 1 + src/i18n/fr.ts | 1 + src/i18n/index.d.ts | 1 + src/i18n/it.ts | 1 + 7 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 777821c..b4f20db 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This project is built using [react-admin](https://marmelab.com/react-admin/). ### Supported Synapse -It needs at least [Synapse](https://github.com/element-hq/synapse) v1.71.0 for all functions to work as expected! +It needs at least [Synapse](https://github.com/element-hq/synapse) v1.93.0 for all functions to work as expected! You get your server version with the request `/_synapse/admin/v1/server_version`. See also [Synapse version API](https://element-hq.github.io/synapse/latest/admin_api/version_api.html). diff --git a/src/components/users.tsx b/src/components/users.tsx index 2a5ba4f..1fdd550 100644 --- a/src/components/users.tsx +++ b/src/components/users.tsx @@ -119,6 +119,7 @@ export const UserList = (props: ListProps) => ( + @@ -200,6 +201,7 @@ export const UserEdit = (props: EditProps) => { + diff --git a/src/i18n/de.ts b/src/i18n/de.ts index d5903b7..3438ceb 100644 --- a/src/i18n/de.ts +++ b/src/i18n/de.ts @@ -104,6 +104,7 @@ const de: SynapseTranslationMessages = { name: "Name", is_guest: "Gast", admin: "Server Administrator", + locked: "Gesperrt", deactivated: "Deaktiviert", erased: "Gelöscht", guests: "Zeige Gäste", diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 680dae5..626b65d 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -103,6 +103,7 @@ const en: SynapseTranslationMessages = { name: "Name", is_guest: "Guest", admin: "Server Administrator", + locked: "Locked", deactivated: "Deactivated", erased: "Erased", guests: "Show guests", diff --git a/src/i18n/fr.ts b/src/i18n/fr.ts index 92bc495..23b23e3 100644 --- a/src/i18n/fr.ts +++ b/src/i18n/fr.ts @@ -104,6 +104,7 @@ const fr: SynapseTranslationMessages = { name: "Nom", is_guest: "Visiteur", admin: "Administrateur du serveur", + locked: "Verrouillé", deactivated: "Désactivé", guests: "Afficher les visiteurs", show_deactivated: "Afficher les utilisateurs désactivés", diff --git a/src/i18n/index.d.ts b/src/i18n/index.d.ts index ed8ab12..4237acb 100644 --- a/src/i18n/index.d.ts +++ b/src/i18n/index.d.ts @@ -99,6 +99,7 @@ interface SynapseTranslationMessages extends TranslationMessages { name: string; is_guest: string; admin: string; + locked?: string; // TODO: fa, zh deactivated: string; erased?: string; // TODO: fa, fr, it, zh guests: string; diff --git a/src/i18n/it.ts b/src/i18n/it.ts index b89040f..ab8a182 100644 --- a/src/i18n/it.ts +++ b/src/i18n/it.ts @@ -101,6 +101,7 @@ const it: SynapseTranslationMessages = { name: "Nome", is_guest: "Ospite", admin: "Amministratore", + locked: "Bloccato", deactivated: "Disattivato", guests: "Mostra gli ospiti", show_deactivated: "Mostra gli utenti disattivati",