Skip to content

Commit

Permalink
Disable bulkActionButtons for not needed room and user tabs (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel authored Feb 8, 2024
1 parent 8688ab7 commit 0852b54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/rooms.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export const RoomShow = props => {
<Datagrid
style={{ width: "100%" }}
rowClick={(id, resource, record) => "/users/" + id}
bulkActionButtons={false}
>
<TextField
source="id"
Expand Down Expand Up @@ -218,7 +219,7 @@ export const RoomShow = props => {
target="room_id"
addLabel={false}
>
<Datagrid style={{ width: "100%" }}>
<Datagrid style={{ width: "100%" }} bulkActionButtons={false}>
<TextField source="type" sortable={false} />
<DateField
source="origin_server_ts"
Expand Down Expand Up @@ -256,7 +257,7 @@ export const RoomShow = props => {
target="room_id"
addLabel={false}
>
<Datagrid style={{ width: "100%" }}>
<Datagrid style={{ width: "100%" }} bulkActionButtons={false}>
<TextField source="id" sortable={false} />
<DateField
source="received_ts"
Expand Down
5 changes: 3 additions & 2 deletions src/components/users.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ export const UserEdit = props => {
source="devices[].sessions[0].connections"
label="resources.connections.name"
>
<Datagrid style={{ width: "100%" }}>
<Datagrid style={{ width: "100%" }} bulkActionButtons={false}>
<TextField source="ip" sortable={false} />
<DateField
source="last_seen"
Expand Down Expand Up @@ -480,6 +480,7 @@ export const UserEdit = props => {
<Datagrid
style={{ width: "100%" }}
rowClick={(id, resource, record) => "/rooms/" + id + "/show"}
bulkActionButtons={false}
>
<TextField
source="id"
Expand Down Expand Up @@ -509,7 +510,7 @@ export const UserEdit = props => {
target="user_id"
addLabel={false}
>
<Datagrid style={{ width: "100%" }}>
<Datagrid style={{ width: "100%" }} bulkActionButtons={false}>
<TextField source="kind" sortable={false} />
<TextField source="app_display_name" sortable={false} />
<TextField source="app_id" sortable={false} />
Expand Down

0 comments on commit 0852b54

Please sign in to comment.