From 09406a36403375b26ae166b56b1d58b047ded322 Mon Sep 17 00:00:00 2001 From: Tatiana Lopaeva Date: Thu, 7 Oct 2021 15:30:53 +0300 Subject: [PATCH] Fixed Bug 52993 - Added title with file extension. --- .../src/pages/Home/Section/Body/RowsView/FilesRowContent.js | 4 ++-- .../Section/Body/TableView/sub-components/FileNameCell.js | 5 ++--- .../pages/Home/Section/Body/TilesView/FilesTileContent.js | 5 ++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/products/ASC.Files/Client/src/pages/Home/Section/Body/RowsView/FilesRowContent.js b/products/ASC.Files/Client/src/pages/Home/Section/Body/RowsView/FilesRowContent.js index f7eb517bd9e..96981fb8a15 100644 --- a/products/ASC.Files/Client/src/pages/Home/Section/Body/RowsView/FilesRowContent.js +++ b/products/ASC.Files/Client/src/pages/Home/Section/Body/RowsView/FilesRowContent.js @@ -66,6 +66,7 @@ const FilesRowContent = ({ foldersCount, providerKey, access, + title, } = item; const withAccess = isAdmin || access === 0; @@ -82,7 +83,7 @@ const FilesRowContent = ({ {fileExst} diff --git a/products/ASC.Files/Client/src/pages/Home/Section/Body/TableView/sub-components/FileNameCell.js b/products/ASC.Files/Client/src/pages/Home/Section/Body/TableView/sub-components/FileNameCell.js index 1434f4a1d22..599653971f7 100644 --- a/products/ASC.Files/Client/src/pages/Home/Section/Body/TableView/sub-components/FileNameCell.js +++ b/products/ASC.Files/Client/src/pages/Home/Section/Body/TableView/sub-components/FileNameCell.js @@ -3,11 +3,11 @@ import Link from "@appserver/components/link"; import Text from "@appserver/components/text"; const FileNameCell = ({ item, titleWithoutExt, linkStyles }) => { - const { fileExst } = item; + const { fileExst, title } = item; return ( { color="#A3A9AE" fontSize="13px" fontWeight={600} - title={fileExst} truncate={true} > {fileExst} diff --git a/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/FilesTileContent.js b/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/FilesTileContent.js index 39128fd3d88..00e03936515 100644 --- a/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/FilesTileContent.js +++ b/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/FilesTileContent.js @@ -79,7 +79,7 @@ const FilesTileContent = ({ linkStyles, badgesComponent, }) => { - const { fileExst } = item; + const { fileExst, title } = item; return ( <> @@ -92,7 +92,7 @@ const FilesTileContent = ({ className="title-link item-file-name" containerWidth="100%" type="page" - title={titleWithoutExt} + title={title} fontWeight="600" fontSize="14px" target="_blank" @@ -108,7 +108,6 @@ const FilesTileContent = ({ color="#A3A9AE" fontSize="14px" fontWeight={600} - title={fileExst} truncate={true} > {fileExst}