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:
parent
a54508a0e3
commit
d252337474
@ -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">
|
||||
|
@ -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."
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user