From 2678c8cf6e110fe205812ddd392019ab08965b82 Mon Sep 17 00:00:00 2001 From: Tatiana Lopaeva Date: Tue, 23 Nov 2021 14:37:48 +0300 Subject: [PATCH] Fixed Bug 53123 - Client.Files.Added a filter at the stage of creating a file or folder. --- .../Client/src/pages/Home/Section/Filter/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/products/ASC.Files/Client/src/pages/Home/Section/Filter/index.js b/products/ASC.Files/Client/src/pages/Home/Section/Filter/index.js index b76c2ff9c52..ec0fcae4ce1 100644 --- a/products/ASC.Files/Client/src/pages/Home/Section/Filter/index.js +++ b/products/ASC.Files/Client/src/pages/Home/Section/Filter/index.js @@ -10,7 +10,7 @@ import { withLayoutSize } from "@appserver/common/utils"; import { isMobileOnly, isMobile } from "react-device-detect"; import { inject, observer } from "mobx-react"; import withLoader from "../../../../HOCs/withLoader"; - +import { FileAction } from "@appserver/common/constants"; const getFilterType = (filterValues) => { const filterType = result( find(filterValues, (value) => { @@ -373,6 +373,8 @@ export default inject( createThumbnails, } = filesStore; + const { type: fileActionType } = filesStore.fileActionStore; + const { user } = auth.userStore; const { customNames, culture, personal } = auth.settingsStore; const { isFavoritesFolder, isRecentFolder } = treeFoldersStore; @@ -383,7 +385,8 @@ export default inject( !!folders.length || search || filterType || - authorType) && + authorType || + fileActionType === FileAction.Create) && !(treeFoldersStore.isPrivacyFolder && isMobile); return {