user_group_popover: Show members count if there are empty subgroups.

We show "0 members" text when a group has no direct members but
has subgroups which are all empty.

The behavior for when a group has neither direct members nor
subgroups is same where we show "This group has no members".
This commit is contained in:
Sahil Batra 2024-10-31 09:09:09 +05:30 committed by Tim Abbott
parent 4a89fffd8a
commit 9a6ef9db93
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
<div class="popover-group-menu-description">{{group_description}}</div>
</div>
</li>
{{#if members_count}}
{{#if (or members.length subgroups.length)}}
<li role="none" class="popover-menu-list-item text-item italic">
{{#tr}}
{members_count, plural, =1 {1 member} other {# members}}