Skip to content

Commit 4ba7f97

Browse files
Fix bugs
1 parent 3f88102 commit 4ba7f97

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/components/VDisk/VDisk.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
border-radius: 4px; // to match interactive area with disk shape
88
}
99

10-
&__donor-icon {
10+
&__vdisk-icon {
1111
position: absolute;
1212
top: 3px;
1313
left: 4px;

src/components/VDisk/VDisk.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const VDisk = ({
7575
className={progressBarClassName}
7676
content={
7777
showIcon ? (
78-
<div className={b('donor-icon')}>
78+
<div className={b('vdisk-icon')}>
7979
<Icon data={statusIcon} size={12} />
8080
</div>
8181
) : null

src/utils/disks/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {BucketPaint} from '@gravity-ui/icons';
1+
import {BucketPaint, CircleExclamation} from '@gravity-ui/icons';
22
import type {IconData, LabelProps} from '@gravity-ui/uikit';
33

44
import type {EFlag} from '../../types/api/enums';
@@ -61,6 +61,7 @@ export const PDISK_STATE_SEVERITY = {
6161
};
6262

6363
export const DONOR_ICON: IconData = BucketPaint;
64+
export const DISPLAYED_DISK_ERROR_ICON: IconData = CircleExclamation;
6465
export const DONOR_THEME: LabelProps['theme'] = 'unknown';
6566
export const REPLICATION_THEME: LabelProps['theme'] = 'info';
6667

src/utils/disks/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import {EFlag} from '../../types/api/enums';
66
import {SelfCheckResult} from '../../types/api/healthcheck';
77
import type {TVDiskStateInfo, TVSlotId} from '../../types/api/vdisk';
88
import {generateEvaluator} from '../generateEvaluator';
9-
import {getEFlagView} from '../healthStatus/healthCheck';
109
import {SELF_CHECK_TO_TEXT} from '../healthStatus/selfCheck';
1110

1211
import {
1312
DISK_COLOR_STATE_TO_NUMERIC_SEVERITY,
1413
DISK_NUMERIC_SEVERITY_TO_STATE_COLOR,
14+
DISPLAYED_DISK_ERROR_ICON,
1515
DONOR_ICON,
1616
EFLAG_TO_SELF_CHECK_PLACEHOLDER,
1717
NOT_AVAILABLE_SEVERITY_COLOR,
@@ -77,7 +77,7 @@ export function getVDiskStatusIcon(severity?: number, isDonor?: boolean): IconDa
7777
}
7878

7979
if (isError) {
80-
return getEFlagView(EFlag.Red).icon;
80+
return DISPLAYED_DISK_ERROR_ICON;
8181
}
8282

8383
return undefined;

0 commit comments

Comments
 (0)