Skip to content

Commit e1f0598

Browse files
authored
Fix Bug in Issue/pulls list (#32081)
fix #32080 ## After ### for opened issues <img width="1199" alt="Screenshot 2024-09-19 at 6 29 31 PM" src="https://github.com/user-attachments/assets/86cf48ad-5e4b-4dcb-8abe-4d7fd74e0aec"> ### for closed issues <img width="1208" alt="Screenshot 2024-09-19 at 6 29 37 PM" src="https://github.com/user-attachments/assets/a16bc545-bfcf-49a4-be52-3e7334910482"> ### for all issues <img width="1340" alt="Screenshot 2024-09-20 at 12 07 12 PM" src="https://github.com/user-attachments/assets/b2309c8f-e59d-44e9-ae3b-bf54e1196169">
1 parent 48cdde9 commit e1f0598

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

routers/web/repo/issue.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ func issues(ctx *context.Context, milestoneID, projectID int64, isPullOption opt
467467
ctx.Data["AssigneeID"] = assigneeID
468468
ctx.Data["PosterID"] = posterID
469469
ctx.Data["Keyword"] = keyword
470+
ctx.Data["IsShowClosed"] = isShowClosed
470471
switch {
471472
case isShowClosed.Value():
472473
ctx.Data["State"] = "closed"

templates/repo/issue/filter_actions.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<div class="ui secondary filter menu">
22
{{if not .Repository.IsArchived}}
33
<!-- Action Button -->
4-
{{if .IsShowClosed}}
4+
{{if and .IsShowClosed.Has .IsShowClosed.Value}}
55
<button class="ui primary basic button issue-action" data-action="open" data-url="{{$.RepoLink}}/issues/status">{{ctx.Locale.Tr "repo.issues.action_open"}}</button>
6-
{{else}}
6+
{{else if and .IsShowClosed.Has (not .IsShowClosed.Value)}}
77
<button class="ui red basic button issue-action" data-action="close" data-url="{{$.RepoLink}}/issues/status">{{ctx.Locale.Tr "repo.issues.action_close"}}</button>
88
{{end}}
99
{{if $.IsRepoAdmin}}

0 commit comments

Comments
 (0)