feat: LocaleString for status

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

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)