forked from forgejo/forgejo
Improve single repo action for issue and pull requests (#20730)
Related to #20650. This will fix the behavior of the single repo action for pull requests and disables the button for other screens that don't have a single repo action currently.
This commit is contained in:
parent
353a5331d5
commit
aedfc923ad
2 changed files with 7 additions and 1 deletions
|
@ -301,6 +301,7 @@ func Pulls(ctx *context.Context) {
|
|||
|
||||
ctx.Data["Title"] = ctx.Tr("pull_requests")
|
||||
ctx.Data["PageIsPulls"] = true
|
||||
ctx.Data["SingleRepoAction"] = "pull"
|
||||
buildIssueOverview(ctx, unit.TypePullRequests)
|
||||
}
|
||||
|
||||
|
@ -314,6 +315,7 @@ func Issues(ctx *context.Context) {
|
|||
|
||||
ctx.Data["Title"] = ctx.Tr("issues")
|
||||
ctx.Data["PageIsIssues"] = true
|
||||
ctx.Data["SingleRepoAction"] = "issue"
|
||||
buildIssueOverview(ctx, unit.TypeIssues)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue