Skip to content

Commit 6a07562

Browse files
fix: use blue color only for not replicated vdisks
1 parent 22bc779 commit 6a07562

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utils/disks/calculateVDiskSeverity.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {EFlag} from '../../types/api/enums';
1+
import {EFlag} from '../../types/api/enums';
22
import type {EVDiskState} from '../../types/api/vdisk';
33

44
import {
@@ -52,5 +52,10 @@ function getColorSeverity(color?: EFlag) {
5252
return NOT_AVAILABLE_SEVERITY;
5353
}
5454

55+
// Blue is reserved for not replicated VDisks
56+
if (color === EFlag.Blue) {
57+
return DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Green;
58+
}
59+
5560
return DISK_COLOR_STATE_TO_NUMERIC_SEVERITY[color] ?? NOT_AVAILABLE_SEVERITY;
5661
}

0 commit comments

Comments
 (0)