Skip to content

Commit d5d5fb1

Browse files
authored
Fix Bug in Issue/pulls list (#32081) (#32115)
1 parent ae37f31 commit d5d5fb1

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
@@ -461,6 +461,7 @@ func issues(ctx *context.Context, milestoneID, projectID int64, isPullOption opt
461461
ctx.Data["AssigneeID"] = assigneeID
462462
ctx.Data["PosterID"] = posterID
463463
ctx.Data["Keyword"] = keyword
464+
ctx.Data["IsShowClosed"] = isShowClosed
464465
switch {
465466
case isShowClosed.Value():
466467
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)