Merge branch 'master' into amp.chat

Change-Id: I08a7a34e041993c29bb12fff52d07534374cda4e
This commit is contained in:
Manuel Stahl
2020-04-28 16:35:40 +02:00
3 changed files with 145 additions and 125 deletions

View File

@@ -202,8 +202,17 @@ export const UserCreate = props => (
</Create>
);
const UserTitle = ({ record }) => {
const translate = useTranslate();
return (
<span>
{translate("resources.users.name")}{" "}
{record ? `"${record.displayname}"` : ""}
</span>
);
};
export const UserEdit = props => (
<Edit {...props}>
<Edit {...props} title={<UserTitle />}>
<TabbedForm toolbar={<UserEditToolbar />}>
<FormTab label="resources.users.name" icon={<PersonPinIcon />}>
<TextInput source="id" disabled />