feat: LocaleString for status

This commit is contained in:
Jason Song committed 2023-01-06 15:02:03 +08:00
1 parent a6f8f10670
commit 91dfef0425
4 files changed
+21 -3

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ func ViewPost(ctx *context_module.Context) {
resp.StateData.CurrentJobInfo.Title = current.Name
resp.StateData.CurrentJobSteps = make([]ViewJobStep, 0)
resp.LogsData.StreamingLogs = make([]ViewStepLog, 0, len(req.StepLogCursors))
resp.StateData.CurrentJobInfo.Detail = current.Status.String()
resp.StateData.CurrentJobInfo.Detail = current.Status.LocaleString(ctx.Locale)
if task != nil {
steps := actions.FullSteps(task)