From d90dd9d7f86cb73ee347e5e94d524f3699ce2743 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 30 Apr 2024 00:19:40 +0800 Subject: [PATCH 1/4] fix --- routers/web/repo/issue.go | 5 ++++- web_src/js/components/ContextPopup.vue | 27 ++++++------------------ web_src/js/features/common-issue-list.js | 2 +- 3 files changed, 11 insertions(+), 23 deletions(-) diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index de6ef9e93bcdb..0c8363a1681e5 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -2177,7 +2177,10 @@ func GetIssueInfo(ctx *context.Context) { } } - ctx.JSON(http.StatusOK, convert.ToIssue(ctx, ctx.Doer, issue)) + ctx.JSON(http.StatusOK, map[string]any{ + "convertedIssue": convert.ToIssue(ctx, ctx.Doer, issue), + "renderedLabels": templates.RenderLabels(ctx, ctx.Locale, issue.Labels, ctx.Repo.RepoLink, issue), + }) } // UpdateIssueTitle change issue's title diff --git a/web_src/js/components/ContextPopup.vue b/web_src/js/components/ContextPopup.vue index 65a6089522184..79400ddc76b0c 100644 --- a/web_src/js/components/ContextPopup.vue +++ b/web_src/js/components/ContextPopup.vue @@ -1,6 +1,5 @@