Skip to content

Commit 2bc3e04

Browse files
committed
fix: update EventStatus handling in EventItem component to include 'Analysing' status
1 parent b184aa3 commit 2bc3e04

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/Components/Event/Enums.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,16 @@ export enum EventStatus {
8787
/**
8888
* @author Aloento
8989
* @since 1.1.0
90-
* @version 0.1.0
90+
* @version 0.1.1
9191
*/
9292
export function GetStatusList(type: EventType): EventStatus[] {
9393
switch (type) {
9494
case EventType.Maintenance:
95-
return Object.values(EventStatus).slice(4, 9);
95+
return Object.values(EventStatus).slice(5, 10);
9696
case EventType.Information:
9797
return [EventStatus.Planned, EventStatus.Active, EventStatus.Completed, EventStatus.Cancelled];
9898
default:
99-
return Object.values(EventStatus).slice(0, 4);
99+
return Object.values(EventStatus).slice(0, 5);
100100
}
101101
}
102102

src/Components/History/EventItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export function EventItem({ Prev, Curr }: IEventItem) {
6868

6969
switch (Curr.Status) {
7070
case EventStatus.Detected:
71+
case EventStatus.Analysing:
7172
color = "red";
7273
break;
7374

0 commit comments

Comments
 (0)