CEC-4157 - Add new statuses to car_update_progress (#334)

* CEC-4157 - Add new statuses to car_update_progress

* small fix
This commit is contained in:
Paul Adamsen
2023-05-18 12:41:30 -04:00
committed by GitHub
parent 6842fb69a0
commit aa43431d12
7 changed files with 524 additions and 4 deletions

View File

@@ -56,9 +56,11 @@ const PHASES = [
s.Installing,
s.InstallSucceeded,
s.InstallFailed,
s.RequirementsFailed,
s.InstallScheduled,
],
progress: (msg, progress) => {
if (msg === s.InstallFailed) return ErrorStatus;
if (msg === s.InstallFailed || msg === s.RequirementsFailed) return ErrorStatus;
if (msg === s.PackageInstallCompleted) return CompleteStatus;
return progress;
},