From 1e6e526e3c31fc92f9cb2fadfe11fe2f5ff34f2c Mon Sep 17 00:00:00 2001 From: Manuel Stahl Date: Tue, 21 Apr 2020 18:39:51 +0200 Subject: [PATCH] Show displayname as title for user Change-Id: I0ba8e2265e5b8e1fe392f56052e96e0243cd3eb6 --- src/components/users.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/users.js b/src/components/users.js index 38dd01f..3674127 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -135,8 +135,17 @@ export const UserCreate = props => ( ); +const UserTitle = ({ record }) => { + const translate = useTranslate(); + return ( + + {translate("resources.users.name")}{" "} + {record ? `"${record.displayname}"` : ""} + + ); +}; export const UserEdit = props => ( - + }> }> }>