@@ -3,15 +3,15 @@ import React from 'react';
33import { Flex } from '@gravity-ui/uikit' ;
44
55import { getVDiskPagePath } from '../../routes' ;
6+ import { EVDiskState } from '../../types/api/vdisk' ;
67import { valueIsDefined } from '../../utils' ;
78import { cn } from '../../utils/cn' ;
89import {
910 formatStorageValuesToGb ,
1011 formatUptimeInSeconds ,
11- stringifyVdiskId ,
1212} from '../../utils/dataFormatters/dataFormatters' ;
1313import { createVDiskDeveloperUILink } from '../../utils/developerUI/developerUI' ;
14- import { getSeverityColor , isFullVDiskData } from '../../utils/disks/helpers' ;
14+ import { getSeverityColor } from '../../utils/disks/helpers' ;
1515import type { PreparedVDisk } from '../../utils/disks/types' ;
1616import { useIsUserAllowedToMakeChanges } from '../../utils/hooks/useIsUserAllowedToMakeChanges' ;
1717import { bytesToSpeed } from '../../utils/utils' ;
@@ -52,7 +52,6 @@ export function VDiskInfo<T extends PreparedVDisk>({
5252 Replicated,
5353 ReplicationProgress,
5454 ReplicationSecondsRemaining,
55- Donors,
5655 VDiskState,
5756 VDiskSlotId,
5857 Kind,
@@ -137,8 +136,8 @@ export function VDiskInfo<T extends PreparedVDisk>({
137136 value : Replicated ? vDiskInfoKeyset ( 'yes' ) : vDiskInfoKeyset ( 'no' ) ,
138137 } ) ;
139138 }
140- // Only show replication progress and time remaining when disk is not replicated
141- if ( Replicated === false ) {
139+ // Only show replication progress and time remaining when disk is not replicated and state is OK
140+ if ( Replicated === false && VDiskState === EVDiskState . OK ) {
142141 if ( valueIsDefined ( ReplicationProgress ) ) {
143142 rightColumn . push ( {
144143 label : vDiskInfoKeyset ( 'replication-progress' ) ,
@@ -152,6 +151,8 @@ export function VDiskInfo<T extends PreparedVDisk>({
152151 ] }
153152 colorizeProgress = { true }
154153 inverseColorize = { true }
154+ dangerThreshold = { 0 }
155+ warningThreshold = { 0 }
155156 />
156157 ) ,
157158 } ) ;
@@ -188,22 +189,6 @@ export function VDiskInfo<T extends PreparedVDisk>({
188189 value : HasUnreadableBlobs ? vDiskInfoKeyset ( 'yes' ) : vDiskInfoKeyset ( 'no' ) ,
189190 } ) ;
190191 }
191- if ( Donors && Donors . length > 0 ) {
192- const donorsList = Donors . map ( ( donor ) => {
193- const isFullData = isFullVDiskData ( donor ) ;
194- const donorId = stringifyVdiskId ( isFullData ? donor . VDiskId : donor ) ;
195- return donorId ;
196- } )
197- . filter ( Boolean )
198- . join ( ', ' ) ;
199-
200- if ( donorsList ) {
201- rightColumn . push ( {
202- label : vDiskInfoKeyset ( 'donors' ) ,
203- value : donorsList ,
204- } ) ;
205- }
206- }
207192
208193 const diskParamsDefined =
209194 valueIsDefined ( PDiskId ) && valueIsDefined ( NodeId ) && valueIsDefined ( VDiskSlotId ) ;
0 commit comments