Web: Files: InfoPanel: fixed public icon

This commit is contained in:
Nikita Gopienko 2024-08-09 17:33:00 +03:00
parent 4c814ae622
commit 656e7dd280

View File

@ -52,7 +52,7 @@ const RoomsItemHeader = ({
setSelection, setSelection,
setBufferSelection, setBufferSelection,
isArchive, isArchive,
hasLinks, isShared,
showSearchBlock, showSearchBlock,
setShowSearchBlock, setShowSearchBlock,
roomType, roomType,
@ -70,7 +70,7 @@ const RoomsItemHeader = ({
(selection.roomType === RoomsType.PublicRoom || (selection.roomType === RoomsType.PublicRoom ||
selection.roomType === RoomsType.FormRoom || selection.roomType === RoomsType.FormRoom ||
selection.roomType === RoomsType.CustomRoom) && selection.roomType === RoomsType.CustomRoom) &&
hasLinks; isShared;
const badgeUrl = showPlanetIcon ? Planet12ReactSvgUrl : null; const badgeUrl = showPlanetIcon ? Planet12ReactSvgUrl : null;
const isRoomMembersPanel = selection?.isRoom && roomsView === "info_members"; const isRoomMembersPanel = selection?.isRoom && roomsView === "info_members";
@ -161,7 +161,6 @@ export default inject(
selectedFolderStore, selectedFolderStore,
filesStore, filesStore,
infoPanelStore, infoPanelStore,
publicRoomStore,
}) => { }) => {
const { const {
infoPanelSelection, infoPanelSelection,
@ -170,7 +169,6 @@ export default inject(
showSearchBlock, showSearchBlock,
setShowSearchBlock, setShowSearchBlock,
} = infoPanelStore; } = infoPanelStore;
const { externalLinks } = publicRoomStore;
const selection = infoPanelSelection.length > 1 ? null : infoPanelSelection; const selection = infoPanelSelection.length > 1 ? null : infoPanelSelection;
const isArchive = selection?.rootFolderType === FolderType.Archive; const isArchive = selection?.rootFolderType === FolderType.Archive;
@ -196,7 +194,7 @@ export default inject(
setSelection: filesStore.setSelection, setSelection: filesStore.setSelection,
setBufferSelection: filesStore.setBufferSelection, setBufferSelection: filesStore.setBufferSelection,
isArchive, isArchive,
hasLinks: externalLinks.length, isShared: selection?.shared,
roomType, roomType,
}; };
}, },