Skip to content

Commit 36d31d5

Browse files
lunny6543
andauthored
Fix team management UI (#18886)
Co-authored-by: 6543 <[email protected]>
1 parent 65689f6 commit 36d31d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/org/team/members.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<div class="ui bottom attached table segment members">
2727
{{range .Team.Members}}
2828
<div class="item">
29-
{{if and $.IsOrganizationOwner (not (eq $.SignedUser.ID .ID))}}
29+
{{if and $.IsOrganizationOwner (not (and ($.Team.IsOwnerTeam) (eq (len $.Team.Members) 1)))}}
3030
<form>
3131
<button class="ui red button delete-button right" data-modal-id="remove-team-member"
3232
data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/remove" data-datauid="{{.ID}}"

templates/org/team/sidebar.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
</tbody>
7575
</table>
7676
{{end}}
77-
{{end}}
78-
</div>
77+
</div>
78+
{{end}}
7979
</div>
8080
{{if .IsOrganizationOwner}}
8181
<div class="ui bottom attached segment">

0 commit comments

Comments
 (0)