更新 'src/components/rooms.js'

This commit is contained in:
钟进 2022-07-07 11:12:09 +08:00
parent 149c8590c2
commit c79453f4f4

View File

@ -309,7 +309,31 @@ export const RoomShow = props => {
icon={<PermMediaIcon />}
path="p3url"
>
<ReferenceManyField
reference="room_members"
target="room_id"
addLabel={false}
>
<Datagrid
style={{ width: "100%" }}
rowClick={(id, basePath, record) => "/users/" + id}
>
<TextField
source="id"
sortable={false}
label="resources.users.fields.id"
/>
<ReferenceField
label="resources.users.fields.displayname"
source="id"
reference="users"
sortable={false}
link=""
>
<TextField source="displayname" sortable={false} />
</ReferenceField>
</Datagrid>
</ReferenceManyField>
</Tab>
</TabbedShowLayout>
</Show>