loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix can not select team reviewers when reviewers is empty (#29174)

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/b29e9c0c-f0fc-454f-b82d-ff9688d9e871)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/a982f7c6-4911-4951-91a5-4bb347e866f9)

Is this a bug? Maybe we don't need to fix this, as it only occurs when
there's only one user in the organization. 🤔

(cherry picked from commit 78c48d8fdde70a2874a7ed42b7762f797f432b03)

authored by

yp05327 and committed by
Earl Warren
df439b6a f4e1a5ae

+4 -2
+4 -2
templates/repo/issue/view_content/sidebar.tmpl
··· 2 2 {{template "repo/issue/branch_selector_field" .}} 3 3 {{if .Issue.IsPull}} 4 4 <input id="reviewer_id" name="reviewer_id" type="hidden" value="{{.reviewer_id}}"> 5 - <div class="ui {{if or (not .Reviewers) (not .CanChooseReviewer) .Repository.IsArchived}}disabled{{end}} floating jump select-reviewers-modify dropdown"> 5 + <div class="ui {{if or (and (not .Reviewers) (not .TeamReviewers)) (not .CanChooseReviewer) .Repository.IsArchived}}disabled{{end}} floating jump select-reviewers-modify dropdown"> 6 6 <a class="text gt-df gt-ac muted"> 7 7 <strong>{{ctx.Locale.Tr "repo.issues.review.reviewers"}}</strong> 8 8 {{if and .CanChooseReviewer (not .Repository.IsArchived)}} ··· 29 29 {{end}} 30 30 {{end}} 31 31 {{if .TeamReviewers}} 32 - <div class="divider"></div> 32 + {{if .Reviewers}} 33 + <div class="divider"></div> 34 + {{end}} 33 35 {{range .TeamReviewers}} 34 36 {{if .Team}} 35 37 <a class="{{if not .CanChange}}ui{{end}} item {{if .Checked}}checked{{end}} {{if not .CanChange}}ban-change{{end}}" href="#" data-id="{{.ItemID}}" data-id-selector="#review_request_team_{{.Team.ID}}" {{if not .CanChange}} data-tooltip-content="{{ctx.Locale.Tr "repo.issues.remove_request_review_block"}}"{{end}}>