From 8a38b5825cdf72bdb73a9fd4edc701dabae23429 Mon Sep 17 00:00:00 2001 From: Rayvented Date: Fri, 9 Feb 2024 13:47:21 +0100 Subject: [PATCH] Fix removing team member (open invitations) --- templates/team/member.html.twig | 53 ++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/templates/team/member.html.twig b/templates/team/member.html.twig index 30e1f3d1..38f4ecec 100644 --- a/templates/team/member.html.twig +++ b/templates/team/member.html.twig @@ -22,30 +22,35 @@
{# Hide this section if keycloak groups are used to avoid confusing users #} {% if not useKeycloakGroups %} -

{% trans %}openInvitations{% endtrans %}

- + {% set openInvitations = team.members|filter(member => member.registerId) %} + {% if openInvitations|length %} +

{% trans %}openInvitations{% endtrans %}

+ + {% endif %} {% endif %}

{% trans from 'base' %}users{% endtrans %}