Skip to content

Commit

Permalink
Fix team management UI
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Feb 25, 2022
1 parent f1c6cf7 commit 928872f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/org/team/members.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="ui bottom attached table segment members">
{{range .Team.Members}}
<div class="item">
{{if and $.IsOrganizationOwner (not (eq $.SignedUser.ID .ID))}}
{{if and $.IsOrganizationOwner (not (and ($.Team.IsOwnerTeam) (eq (len $.Team.Members) 1)))}}
<form>
<button class="ui red button delete-button right" data-modal-id="remove-team-member"
data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/remove" data-datauid="{{.ID}}"
Expand Down
4 changes: 2 additions & 2 deletions templates/org/team/sidebar.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
</tbody>
</table>
{{end}}
{{end}}
</div>
</div>
{{end}}
</div>
{{if .IsOrganizationOwner}}
<div class="ui bottom attached segment">
Expand Down

0 comments on commit 928872f

Please sign in to comment.