Client:QuickButtons:Added quick buttons to the last column in the table rooms.

This commit is contained in:
Vlada Gazizova 2024-08-06 13:32:24 +03:00
parent 2de66aab89
commit 260445c4c6
2 changed files with 9 additions and 3 deletions

View File

@ -119,7 +119,7 @@ class FilesTableHeader extends React.Component {
];
showStorageInfo &&
columns.splice(columns.length - 1, 0, {
columns.splice(columns.length, 0, {
key: "Storage",
title:
isDefaultRoomsQuotaSet && !isArchiveFolder

View File

@ -85,6 +85,7 @@ const RoomsRowDataComponent = (props) => {
<StyledBadgesContainer showHotkeyBorder={showHotkeyBorder}>
{badgesComponent}
</StyledBadgesContainer>
{lastColumn === "Name" ? quickButtonsComponent : <></>}
</TableCell>
{roomColumnTypeIsEnabled ? (
@ -104,6 +105,7 @@ const RoomsRowDataComponent = (props) => {
sideColor={theme.filesSection.tableView.row.sideColor}
{...props}
/>
{lastColumn === "Type" ? quickButtonsComponent : <></>}
</TableCell>
) : (
<div />
@ -122,6 +124,7 @@ const RoomsRowDataComponent = (props) => {
sideColor={theme.filesSection.tableView.row.sideColor}
{...props}
/>
{lastColumn === "Tags" ? quickButtonsComponent : <></>}
</TableCell>
) : (
<div />
@ -144,6 +147,7 @@ const RoomsRowDataComponent = (props) => {
sideColor={theme.filesSection.tableView.row.sideColor}
{...props}
/>
{lastColumn === "Owner" ? quickButtonsComponent : <></>}
</TableCell>
) : (
<div />
@ -166,6 +170,7 @@ const RoomsRowDataComponent = (props) => {
sideColor={theme.filesSection.tableView.row.sideColor}
{...props}
/>
{lastColumn === "Activity" ? quickButtonsComponent : <></>}
</TableCell>
) : (
<div />
@ -178,12 +183,13 @@ const RoomsRowDataComponent = (props) => {
type="room"
isReadOnly={!item?.security?.EditRoom}
/>
{lastColumn === "Storage" ? quickButtonsComponent : <></>}
</TableCell>
) : (
<div />
))}
{roomColumnQuickButtonsIsEnabled ? (
{/* {roomColumnQuickButtonsIsEnabled ? (
<TableCell
style={
!roomColumnQuickButtonsIsEnabled
@ -202,7 +208,7 @@ const RoomsRowDataComponent = (props) => {
</TableCell>
) : (
<div />
)}
)} */}
</>
);
};