From a0f290205da539e55f79a377469f0f4b92398fc3 Mon Sep 17 00:00:00 2001 From: DmitrySychugov Date: Mon, 22 Apr 2024 19:31:50 +0500 Subject: [PATCH] Client: RowsView: added idx for VDR indexing --- .../Section/Body/RowsView/FilesRowContent.js | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/Home/Section/Body/RowsView/FilesRowContent.js b/packages/client/src/pages/Home/Section/Body/RowsView/FilesRowContent.js index ce989fb593..9a6aee4b66 100644 --- a/packages/client/src/pages/Home/Section/Body/RowsView/FilesRowContent.js +++ b/packages/client/src/pages/Home/Section/Body/RowsView/FilesRowContent.js @@ -39,6 +39,7 @@ import { import { Link } from "@docspace/shared/components/link"; import { Text } from "@docspace/shared/components/text"; import { RowContent } from "@docspace/shared/components/row-content"; +import { RoomsType } from "@docspace/shared/enums"; import withContent from "../../../../../HOCs/withContent"; @@ -216,6 +217,7 @@ const FilesRowContent = ({ isDefaultRoomsQuotaSet, isStatisticsAvailable, showStorageInfo, + isVirtualDataRoom, }) => { const { contentLength, @@ -230,6 +232,7 @@ const FilesRowContent = ({ tags, quotaLimit, usedSpace, + order, } = item; const contentComponent = () => { @@ -323,6 +326,18 @@ const FilesRowContent = ({ {!isRoom && !isRooms && quickButtons} + {isVirtualDataRoom && ( + + {`idx ${order}`} + + )} + { + ({ + currentQuotaStore, + settingsStore, + treeFoldersStore, + filesStore, + selectedFolderStore, + }) => { const { filter, roomsFilter } = filesStore; const { isRecycleBinFolder, isRoomsFolder, isArchiveFolder } = treeFoldersStore; @@ -358,6 +379,12 @@ export default inject( const isRooms = isRoomsFolder || isArchiveFolder; const filterSortBy = isRooms ? roomsFilter.sortBy : filter.sortBy; + const { indexing, roomType } = selectedFolderStore; + + const isVirtualDataRoom = + window.location.pathname.includes("rooms/shared") && + roomType === RoomsType.VirtualDataRoom; + const { isDefaultRoomsQuotaSet, isStatisticsAvailable, showStorageInfo } = currentQuotaStore; return { @@ -367,6 +394,7 @@ export default inject( isDefaultRoomsQuotaSet, isStatisticsAvailable, showStorageInfo, + isVirtualDataRoom, }; }, )(