Web: Files: InfoPanel: fixed public icon
This commit is contained in:
parent
4c814ae622
commit
656e7dd280
@ -52,7 +52,7 @@ const RoomsItemHeader = ({
|
||||
setSelection,
|
||||
setBufferSelection,
|
||||
isArchive,
|
||||
hasLinks,
|
||||
isShared,
|
||||
showSearchBlock,
|
||||
setShowSearchBlock,
|
||||
roomType,
|
||||
@ -70,7 +70,7 @@ const RoomsItemHeader = ({
|
||||
(selection.roomType === RoomsType.PublicRoom ||
|
||||
selection.roomType === RoomsType.FormRoom ||
|
||||
selection.roomType === RoomsType.CustomRoom) &&
|
||||
hasLinks;
|
||||
isShared;
|
||||
|
||||
const badgeUrl = showPlanetIcon ? Planet12ReactSvgUrl : null;
|
||||
const isRoomMembersPanel = selection?.isRoom && roomsView === "info_members";
|
||||
@ -161,7 +161,6 @@ export default inject(
|
||||
selectedFolderStore,
|
||||
filesStore,
|
||||
infoPanelStore,
|
||||
publicRoomStore,
|
||||
}) => {
|
||||
const {
|
||||
infoPanelSelection,
|
||||
@ -170,7 +169,6 @@ export default inject(
|
||||
showSearchBlock,
|
||||
setShowSearchBlock,
|
||||
} = infoPanelStore;
|
||||
const { externalLinks } = publicRoomStore;
|
||||
|
||||
const selection = infoPanelSelection.length > 1 ? null : infoPanelSelection;
|
||||
const isArchive = selection?.rootFolderType === FolderType.Archive;
|
||||
@ -196,7 +194,7 @@ export default inject(
|
||||
setSelection: filesStore.setSelection,
|
||||
setBufferSelection: filesStore.setBufferSelection,
|
||||
isArchive,
|
||||
hasLinks: externalLinks.length,
|
||||
isShared: selection?.shared,
|
||||
roomType,
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user