Web: Files: fixed table view

This commit is contained in:
Nikita Gopienko 2024-01-22 12:07:37 +03:00
parent 652583dead
commit 939d29ef66
3 changed files with 13 additions and 9 deletions

View File

@ -90,7 +90,7 @@ class FilesTableHeader extends React.Component {
];
showStorageInfo &&
columns.push({
columns.splice(columns.length - 1, 0, {
key: "Storage",
title: isDefaultRoomsQuotaSet
? t("Common:StorageAndQuota")

View File

@ -129,13 +129,14 @@ const RoomsRowDataComponent = (props) => {
) : (
<div />
)}
{roomQuotaColumnIsEnable && showStorageInfo ? (
<TableCell className={"table-cell_Storage/Quota"}>
<SpaceQuota item={item} type="room" />
</TableCell>
) : (
<div />
)}
{showStorageInfo &&
(roomQuotaColumnIsEnable ? (
<TableCell className={"table-cell_Storage/Quota"}>
<SpaceQuota item={item} type="room" />
</TableCell>
) : (
<div />
))}
{roomColumnQuickButtonsIsEnabled ? (
<TableCell

View File

@ -3,7 +3,10 @@ import { toastr } from "@docspace/shared/components/toast";
import api from "@docspace/shared/api";
import { PortalFeaturesLimitations } from "@docspace/shared/enums";
import { setDefaultUserQuota, setDefaultRoomQuota } from "@docspace/shared/api/settings";
import {
setDefaultUserQuota,
setDefaultRoomQuota,
} from "@docspace/shared/api/settings";
const MANAGER = "manager";
const TOTAL_SIZE = "total_size";