Disable bulkActionButtons for not needed room and user tabs (#466)

This commit is contained in:
Dirk Klimpel 2024-02-08 09:31:11 +01:00 committed by GitHub
parent 8688ab7d0e
commit 0852b54a8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -134,6 +134,7 @@ export const RoomShow = props => {
<Datagrid <Datagrid
style={{ width: "100%" }} style={{ width: "100%" }}
rowClick={(id, resource, record) => "/users/" + id} rowClick={(id, resource, record) => "/users/" + id}
bulkActionButtons={false}
> >
<TextField <TextField
source="id" source="id"
@ -218,7 +219,7 @@ export const RoomShow = props => {
target="room_id" target="room_id"
addLabel={false} addLabel={false}
> >
<Datagrid style={{ width: "100%" }}> <Datagrid style={{ width: "100%" }} bulkActionButtons={false}>
<TextField source="type" sortable={false} /> <TextField source="type" sortable={false} />
<DateField <DateField
source="origin_server_ts" source="origin_server_ts"
@ -256,7 +257,7 @@ export const RoomShow = props => {
target="room_id" target="room_id"
addLabel={false} addLabel={false}
> >
<Datagrid style={{ width: "100%" }}> <Datagrid style={{ width: "100%" }} bulkActionButtons={false}>
<TextField source="id" sortable={false} /> <TextField source="id" sortable={false} />
<DateField <DateField
source="received_ts" source="received_ts"

View File

@ -417,7 +417,7 @@ export const UserEdit = props => {
source="devices[].sessions[0].connections" source="devices[].sessions[0].connections"
label="resources.connections.name" label="resources.connections.name"
> >
<Datagrid style={{ width: "100%" }}> <Datagrid style={{ width: "100%" }} bulkActionButtons={false}>
<TextField source="ip" sortable={false} /> <TextField source="ip" sortable={false} />
<DateField <DateField
source="last_seen" source="last_seen"
@ -480,6 +480,7 @@ export const UserEdit = props => {
<Datagrid <Datagrid
style={{ width: "100%" }} style={{ width: "100%" }}
rowClick={(id, resource, record) => "/rooms/" + id + "/show"} rowClick={(id, resource, record) => "/rooms/" + id + "/show"}
bulkActionButtons={false}
> >
<TextField <TextField
source="id" source="id"
@ -509,7 +510,7 @@ export const UserEdit = props => {
target="user_id" target="user_id"
addLabel={false} addLabel={false}
> >
<Datagrid style={{ width: "100%" }}> <Datagrid style={{ width: "100%" }} bulkActionButtons={false}>
<TextField source="kind" sortable={false} /> <TextField source="kind" sortable={false} />
<TextField source="app_display_name" sortable={false} /> <TextField source="app_display_name" sortable={false} />
<TextField source="app_id" sortable={false} /> <TextField source="app_id" sortable={false} />