@@ -6,13 +6,11 @@ import {Button, Tooltip} from '@yandex-cloud/uikit';
66
77import Icon from '../components/Icon/Icon' ;
88import EntityStatus from '../components/EntityStatus/EntityStatus' ;
9- import { STORAGE_ROLE } from '../containers/Node/Node' ;
109import PoolsGraph from '../components/PoolsGraph/PoolsGraph' ;
1110import ProgressViewer from '../components/ProgressViewer/ProgressViewer' ;
1211import TabletsStatistic from '../components/TabletsStatistic/TabletsStatistic' ;
1312
14- import routes , { createHref } from '../routes' ;
15- import { STORAGE , TABLETS } from '../containers/Node/NodePages' ;
13+ import { getDefaultNodePath } from '../containers/Node/NodePages' ;
1614import { formatBytes } from './index' ;
1715
1816const b = cn ( 'kv-nodes' ) ;
@@ -28,7 +26,6 @@ export function getNodesColumns({showTooltip, hideTooltip, tabletsPath, getNodeR
2826 {
2927 name : 'Host' ,
3028 render : ( { row, value} ) => {
31- const hasStorage = _ . find ( row ?. Roles , ( el ) => el === STORAGE_ROLE ) ;
3229 const nodeRef = getNodeRef ? getNodeRef ( row ) : undefined ;
3330
3431 if ( typeof value === 'undefined' ) {
@@ -39,10 +36,7 @@ export function getNodesColumns({showTooltip, hideTooltip, tabletsPath, getNodeR
3936 < EntityStatus
4037 name = { row . Host }
4138 status = { row . Overall }
42- path = { createHref ( routes . node , {
43- id : row . NodeId ,
44- activeTab : hasStorage ? STORAGE : TABLETS ,
45- } ) }
39+ path = { getDefaultNodePath ( row . NodeId ) }
4640 hasClipboardButton
4741 className = { b ( 'host-name' ) }
4842 />
0 commit comments