1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-03-02 03:41:09 +01:00

[pm-13645] invite member modal for free org references up to 20 users (#12837)

* fix invite counter to show when there are 0 seats left
This commit is contained in:
Brandon Treston 2025-01-13 14:32:57 -05:00 committed by GitHub
parent a54508a0e3
commit d252337474
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 6 deletions

View File

@ -23,15 +23,19 @@
<bit-tab [label]="'role' | i18n">
<ng-container *ngIf="!editMode">
<p bitTypography="body1">{{ "inviteUserDesc" | i18n }}</p>
<bit-form-field *ngIf="remainingSeats$ | async as remainingSeats">
<bit-form-field *ngIf="{ seats: remainingSeats$ | async } as remaining">
<bit-label>{{ "email" | i18n }}</bit-label>
<input id="emails" type="text" appAutoFocus bitInput formControlName="emails" />
<bit-hint *ngIf="remainingSeats > 1; else singleSeat">{{
"inviteMultipleEmailDesc" | i18n: remainingSeats
<bit-hint *ngIf="remaining.seats > 1">{{
"inviteMultipleEmailDesc" | i18n: remaining.seats
}}</bit-hint>
<ng-template #singleSeat>
<bit-hint>{{ "inviteSingleEmailDesc" | i18n: remainingSeats }}</bit-hint>
</ng-template>
<bit-hint *ngIf="remaining.seats === 1">{{
"inviteSingleEmailDesc" | i18n
}}</bit-hint>
<bit-hint *ngIf="remaining.seats === 0">{{ "inviteZeroEmailDesc" | i18n }}</bit-hint>
</bit-form-field>
</ng-container>
<bit-radio-group formControlName="type">

View File

@ -3302,6 +3302,9 @@
"inviteSingleEmailDesc": {
"message": "You have 1 invite remaining."
},
"inviteZeroEmailDesc": {
"message": "You have 0 invites remaining."
},
"userUsingTwoStep": {
"message": "This user is using two-step login to protect their account."
},