diff --git a/packages/client/src/components/EmptyContainer/EmptyFolderContainer.js b/packages/client/src/components/EmptyContainer/EmptyFolderContainer.js index cab1bd199c..8d8496a271 100644 --- a/packages/client/src/components/EmptyContainer/EmptyFolderContainer.js +++ b/packages/client/src/components/EmptyContainer/EmptyFolderContainer.js @@ -151,6 +151,7 @@ export default inject( filesStore, selectedFolderStore, contextOptionsStore, + treeFoldersStore, }) => { const { fetchFiles, fetchRooms, setIsEmptyPage } = filesStore; const { @@ -158,7 +159,9 @@ export default inject( parentId, access, id: folderId, + rootFolderType, } = selectedFolderStore; + const { isRoomRoot } = treeFoldersStore; let isRootRoom, isRoom, id; if (navigationPath && navigationPath.length) { @@ -180,7 +183,7 @@ export default inject( fetchRooms, setIsLoading: filesStore.setIsLoading, parentId: id ?? parentId, - isRooms: isRoom || isRootRoom, + isRooms: isRoom || isRootRoom || isRoomRoot(rootFolderType), canCreateFiles, canInviteUsers, setIsEmptyPage, diff --git a/packages/client/src/store/TreeFoldersStore.js b/packages/client/src/store/TreeFoldersStore.js index 23f6e2066d..a33a1281a1 100644 --- a/packages/client/src/store/TreeFoldersStore.js +++ b/packages/client/src/store/TreeFoldersStore.js @@ -70,6 +70,7 @@ class TreeFoldersStore { isMy = (myType) => myType === FolderType.USER; isCommon = (commonType) => commonType === FolderType.COMMON; isShare = (shareType) => shareType === FolderType.SHARE; + isRoomRoot = (type) => type === FolderType.Rooms; getRootFolder = (rootFolderType) => { return this.treeFolders.find((x) => x.rootFolderType === rootFolderType);