Function
processStatusLabel
(status: ProcessStepStatus, t: (zh: string, en: string) => string)
Source from the content-addressed store, hash-verified
| 3701 | } |
| 3702 | |
| 3703 | function processStatusLabel(status: ProcessStepStatus, t: (zh: string, en: string) => string) { |
| 3704 | if (status === "running") return t("运行中", "Running"); |
| 3705 | if (status === "failed") return t("失败", "Failed"); |
| 3706 | return t("完成", "Done"); |
| 3707 | } |
| 3708 | |
| 3709 | function processStatusClassName(status: ProcessStepStatus) { |
| 3710 | if (status === "failed") return "border-red-200 bg-red-50 text-red-700"; |
Tested by
no test coverage detected