From 0e6e97ca0cab000829e3b4519bbdda407ceb62dd Mon Sep 17 00:00:00 2001 From: Vladislav Makhov Date: Mon, 16 Nov 2020 17:04:17 +0300 Subject: [PATCH] Fix empty screen --- .../pages/Home/Section/Body/index.js | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/products/ASC.Files/Client/src/components/pages/Home/Section/Body/index.js b/products/ASC.Files/Client/src/components/pages/Home/Section/Body/index.js index 0b7789c39c..bc8e80e4e1 100644 --- a/products/ASC.Files/Client/src/components/pages/Home/Section/Body/index.js +++ b/products/ASC.Files/Client/src/components/pages/Home/Section/Body/index.js @@ -96,6 +96,7 @@ const { isAdmin, getSettings, getCurrentUser, + isDesktopClient, isEncryptionSupport, getOrganizationName, } = store.auth.selectors; @@ -832,6 +833,8 @@ class SectionBodyContent extends React.Component { isFavorites, isRecent, isPrivacy, + isDesktop, + isEncryptionSupport, organizationName, privacyInstructions, title, @@ -869,15 +872,17 @@ class SectionBodyContent extends React.Component { ))} - - - Work in Private Room is available via {{ organizationName }} desktop - app. - - Instructions - - - + {!isDesktop && ( + + + Work in Private Room is available via {{ organizationName }} + desktop app. + + Instructions + + + + )} ); @@ -996,6 +1001,7 @@ class SectionBodyContent extends React.Component { headerText={privateRoomHeader} descriptionText={privateRoomDescription} imageSrc="images/empty_screen_privacy.png" + buttons={isDesktop && isEncryptionSupport && commonButtons} /> ); } else { @@ -1819,6 +1825,7 @@ const mapStateToProps = (state) => { folders: getFolders(state), isAdmin: isAdmin(state), isCommon: getIsCommonFolder(state), + isDesktop: isDesktopClient(state), isEncryptionSupport: isEncryptionSupport(state), isFavorites: getIsFavoritesFolder(state), isLoading: getIsLoading(state),