Skip to content

Commit

Permalink
add plural clause to approval flow node members
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSurmay committed Dec 16, 2020
1 parent 3729708 commit 194abf0
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@
</ng-container>
</div>
<div class="approval-flow-node__info">
<div class="approval-flow-node__name" [class.approval-flow-node__name--members-count]="node.approvers.length > 1">
<ng-container *ngIf="node.approvers.length === 1">{{ node.approvers[0].name }}</ng-container>
<ng-container *ngIf="node.approvers.length > 1">
{{ node.approvers.length }} <ng-container i18n="@@platformApprovalFlowNodeMembers">members</ng-container>
</ng-container>
<div
class="approval-flow-node__name"
[class.approval-flow-node__name--members-count]="node.approvers.length > 1"
i18n="@@platformApprovalFlowNodeMembers">
{
node.approvers.length,
plural,
=1 {{{node.approvers[0].name}}}
other {{{node.approvers.length}} members}
}
</div>
<div class="approval-flow-node__description">
{{ node.approvers.length > 1 ? node.description : node.approvers[0].description }}
Expand Down

0 comments on commit 194abf0

Please sign in to comment.