Skip to content

Commit 2bb7b2d

Browse files
fix: update PDisk errors colors (#2171)
1 parent c840b21 commit 2bb7b2d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/types/api/pdisk.ts

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export enum TPDiskState {
6565
OpenFileError = 'OpenFileError',
6666
ChunkQuotaError = 'ChunkQuotaError',
6767
DeviceIoError = 'DeviceIoError',
68+
Stopped = 'Stopped',
6869

6970
// these can't be sent to UI
7071
Missing = 'Missing',

src/utils/disks/constants.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export const VDISK_STATE_SEVERITY: Record<EVDiskState, number> = {
3434
};
3535

3636
export const PDISK_STATE_SEVERITY = {
37-
[TPDiskState.Initial]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Grey,
3837
[TPDiskState.Normal]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Green,
3938

39+
[TPDiskState.Initial]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow,
4040
[TPDiskState.InitialFormatRead]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow,
4141
[TPDiskState.InitialSysLogRead]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow,
4242
[TPDiskState.InitialCommonLogRead]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow,
@@ -50,4 +50,5 @@ export const PDISK_STATE_SEVERITY = {
5050
[TPDiskState.OpenFileError]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red,
5151
[TPDiskState.ChunkQuotaError]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red,
5252
[TPDiskState.DeviceIoError]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red,
53+
[TPDiskState.Stopped]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red,
5354
};

0 commit comments

Comments
 (0)