mirror of
https://github.com/rajnandan1/kener.git
synced 2026-03-10 21:10:11 -05:00
refactor: remove unnecessary future and ongoing incident checks from IncidentNew component
This commit is contained in:
@@ -31,18 +31,6 @@
|
||||
incidentTimeStatus = "COMPLETED";
|
||||
}
|
||||
|
||||
let isFuture = false;
|
||||
let isOngoing = false;
|
||||
//is future incident
|
||||
if (nowTime < startTime) {
|
||||
isFuture = true;
|
||||
}
|
||||
|
||||
//is ongoing incident
|
||||
if (nowTime > startTime && nowTime < endTime) {
|
||||
isOngoing = true;
|
||||
}
|
||||
|
||||
let accordionValue = "incident-0";
|
||||
if ($page.data.site.incidentGroupView == "COLLAPSED") {
|
||||
accordionValue = "incident-collapse";
|
||||
|
||||
Reference in New Issue
Block a user