Merge branch 'release/v0.0.6' of github.com:ONLYOFFICE/AppServer into release/v0.0.6

This commit is contained in:
Artem Tarasov 2020-12-30 12:16:05 +03:00
commit b2317b3a06
2 changed files with 9 additions and 6 deletions

View File

@ -263,7 +263,7 @@ const DownloadContent = (props) => {
<LinkWithDropdown
containerWidth="auto"
data={formats}
directionX="right"
directionX="left"
directionY="bottom"
dropdownType="appearDashedAfterHover"
fontSize="12px"
@ -306,7 +306,7 @@ const DownloadContent = (props) => {
dropdownType="appearDashedAfterHover"
containerWidth="auto"
data={dropdownItems}
directionX="right"
directionX="left"
directionY="bottom"
fontSize="12px"
>

View File

@ -137,10 +137,13 @@ const SectionPagingContent = ({
//console.log("SectionPagingContent render", filter);
const currItemsLength = useMemo(() => {
const showCountItem = useMemo(() => {
if (files && folders)
return files.length + folders.length === filter.pageCount;
}, [files, folders, filter]);
return (
files.length + folders.length === filter.pageCount ||
(pageItems.length < 1 && filter.total > 25)
);
}, [files, folders, filter, pageItems]);
return filter.total < filter.pageCount && filter.total < 26 ? (
<></>
@ -161,7 +164,7 @@ const SectionPagingContent = ({
openDirection="top"
selectedPageItem={selectedPageItem} //FILTER CURRENT PAGE
selectedCountItem={selectedCountItem} //FILTER PAGE COUNT
showCountItem={currItemsLength}
showCountItem={showCountItem}
/>
);
};