We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65689f6 commit 36d31d5Copy full SHA for 36d31d5
templates/org/team/members.tmpl
@@ -26,7 +26,7 @@
26
<div class="ui bottom attached table segment members">
27
{{range .Team.Members}}
28
<div class="item">
29
- {{if and $.IsOrganizationOwner (not (eq $.SignedUser.ID .ID))}}
+ {{if and $.IsOrganizationOwner (not (and ($.Team.IsOwnerTeam) (eq (len $.Team.Members) 1)))}}
30
<form>
31
<button class="ui red button delete-button right" data-modal-id="remove-team-member"
32
data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/remove" data-datauid="{{.ID}}"
templates/org/team/sidebar.tmpl
@@ -74,8 +74,8 @@
74
</tbody>
75
</table>
76
{{end}}
77
- {{end}}
78
- </div>
+ </div>
+ {{end}}
79
</div>
80
{{if .IsOrganizationOwner}}
81
<div class="ui bottom attached segment">
0 commit comments