@@ -6,11 +6,13 @@ import {PDiskPopup} from '../../../components/PDiskPopup/PDiskPopup';
66import { VDiskWithDonorsStack } from '../../../components/VDisk/VDiskWithDonorsStack' ;
77import routes , { createHref , getPDiskPagePath } from '../../../routes' ;
88import { useDiskPagesAvailable } from '../../../store/reducers/capabilities/hooks' ;
9+ import { selectNodesMap } from '../../../store/reducers/nodesList' ;
910import type { TVDiskStateInfo } from '../../../types/api/vdisk' ;
1011import { valueIsDefined } from '../../../utils' ;
1112import { cn } from '../../../utils/cn' ;
1213import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters' ;
1314import type { PreparedPDisk } from '../../../utils/disks/types' ;
15+ import { useTypedSelector } from '../../../utils/hooks' ;
1416import { STRUCTURE } from '../../Node/NodePages' ;
1517
1618import './PDisk.scss' ;
@@ -38,6 +40,7 @@ export const PDisk = ({
3840} : PDiskProps ) => {
3941 const [ isPopupVisible , setIsPopupVisible ] = React . useState ( false ) ;
4042
43+ const nodes = useTypedSelector ( selectNodesMap ) ;
4144 const diskPagesAvailable = useDiskPagesAvailable ( ) ;
4245
4346 const anchor = React . useRef ( null ) ;
@@ -113,7 +116,12 @@ export const PDisk = ({
113116 < div className = { b ( 'media-type' ) } > { data . Type } </ div >
114117 </ InternalLink >
115118 </ div >
116- < PDiskPopup data = { data } anchorRef = { anchor } open = { isPopupVisible || showPopup } />
119+ < PDiskPopup
120+ data = { data }
121+ nodes = { nodes }
122+ anchorRef = { anchor }
123+ open = { isPopupVisible || showPopup }
124+ />
117125 </ React . Fragment >
118126 ) ;
119127} ;
0 commit comments