From 4ccc9b3ef1adea15d33948653ba9a54cf79061f0 Mon Sep 17 00:00:00 2001 From: mufazalov Date: Thu, 17 Apr 2025 15:18:40 +0300 Subject: [PATCH] fix: update PDisk errors colors --- src/types/api/pdisk.ts | 1 + src/utils/disks/constants.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types/api/pdisk.ts b/src/types/api/pdisk.ts index 5d6aea2743..32726e824c 100644 --- a/src/types/api/pdisk.ts +++ b/src/types/api/pdisk.ts @@ -65,6 +65,7 @@ export enum TPDiskState { OpenFileError = 'OpenFileError', ChunkQuotaError = 'ChunkQuotaError', DeviceIoError = 'DeviceIoError', + Stopped = 'Stopped', // these can't be sent to UI Missing = 'Missing', diff --git a/src/utils/disks/constants.ts b/src/utils/disks/constants.ts index 609c6c00f5..fcbd53e320 100644 --- a/src/utils/disks/constants.ts +++ b/src/utils/disks/constants.ts @@ -34,9 +34,9 @@ export const VDISK_STATE_SEVERITY: Record = { }; export const PDISK_STATE_SEVERITY = { - [TPDiskState.Initial]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Grey, [TPDiskState.Normal]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Green, + [TPDiskState.Initial]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow, [TPDiskState.InitialFormatRead]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow, [TPDiskState.InitialSysLogRead]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow, [TPDiskState.InitialCommonLogRead]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow, @@ -50,4 +50,5 @@ export const PDISK_STATE_SEVERITY = { [TPDiskState.OpenFileError]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red, [TPDiskState.ChunkQuotaError]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red, [TPDiskState.DeviceIoError]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red, + [TPDiskState.Stopped]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red, };