diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 807535bb..af57f0b6 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -124,6 +124,7 @@ const en: SynapseTranslationMessages = { erased: "Erased", guests: "Show guests", show_deactivated: "Show deactivated users", + show_locked: "Show locked users", user_id: "Search user", displayname: "Displayname", password: "Password", diff --git a/src/i18n/index.d.ts b/src/i18n/index.d.ts index 38635adf..eb2f04e3 100644 --- a/src/i18n/index.d.ts +++ b/src/i18n/index.d.ts @@ -120,6 +120,7 @@ interface SynapseTranslationMessages extends TranslationMessages { erased?: string; // TODO: fa, fr, it, zh guests: string; show_deactivated: string; + show_locked?: string; // TODO: de, fa, fr, it, zh user_id: string; displayname: string; password: string; diff --git a/src/resources/users.tsx b/src/resources/users.tsx index 7544ee2b..eb7daca4 100644 --- a/src/resources/users.tsx +++ b/src/resources/users.tsx @@ -90,6 +90,7 @@ const userFilters = [ , , , + , ]; const UserBulkActionButtons = () => ( @@ -107,7 +108,7 @@ export const UserList = (props: ListProps) => ( } pagination={} diff --git a/src/synapse/dataProvider.ts b/src/synapse/dataProvider.ts index 4bf7450a..1972dc50 100644 --- a/src/synapse/dataProvider.ts +++ b/src/synapse/dataProvider.ts @@ -489,7 +489,7 @@ function getSearchOrder(order: "ASC" | "DESC") { const dataProvider: SynapseDataProvider = { getList: async (resource, params) => { console.log("getList " + resource); - const { user_id, name, guests, deactivated, search_term, destination, valid } = params.filter; + const { user_id, name, guests, deactivated, locked, search_term, destination, valid } = params.filter; const { page, perPage } = params.pagination; const { field, order } = params.sort; const from = (page - 1) * perPage; @@ -502,6 +502,7 @@ const dataProvider: SynapseDataProvider = { destination: destination, guests: guests, deactivated: deactivated, + locked: locked, valid: valid, order_by: field, dir: getSearchOrder(order),