mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
Revert "[PM-13645] Fix invite counter to check remaining number of seats in p…" (#11843)
This reverts commit 2a956744bd
.
This commit is contained in:
parent
f43bf48215
commit
62545aa25a
@ -23,15 +23,14 @@
|
|||||||
<bit-tab [label]="'role' | i18n">
|
<bit-tab [label]="'role' | i18n">
|
||||||
<ng-container *ngIf="!editMode">
|
<ng-container *ngIf="!editMode">
|
||||||
<p bitTypography="body1">{{ "inviteUserDesc" | i18n }}</p>
|
<p bitTypography="body1">{{ "inviteUserDesc" | i18n }}</p>
|
||||||
<bit-form-field *ngIf="remainingSeats$ | async as remainingSeats">
|
<bit-form-field>
|
||||||
<bit-label>{{ "email" | i18n }}</bit-label>
|
<bit-label>{{ "email" | i18n }}</bit-label>
|
||||||
<input id="emails" type="text" appAutoFocus bitInput formControlName="emails" />
|
<input id="emails" type="text" appAutoFocus bitInput formControlName="emails" />
|
||||||
<bit-hint *ngIf="remainingSeats > 1; else singleSeat">{{
|
<bit-hint>{{
|
||||||
"inviteMultipleEmailDesc" | i18n: remainingSeats
|
"inviteMultipleEmailDesc"
|
||||||
|
| i18n
|
||||||
|
: (organization.productTierType === ProductTierType.TeamsStarter ? "10" : "20")
|
||||||
}}</bit-hint>
|
}}</bit-hint>
|
||||||
<ng-template #singleSeat>
|
|
||||||
<bit-hint>{{ "inviteSingleEmailDesc" | i18n: remainingSeats }}</bit-hint>
|
|
||||||
</ng-template>
|
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<bit-radio-group formControlName="type">
|
<bit-radio-group formControlName="type">
|
||||||
|
@ -89,7 +89,6 @@ export class MemberDialogComponent implements OnDestroy {
|
|||||||
PermissionMode = PermissionMode;
|
PermissionMode = PermissionMode;
|
||||||
showNoMasterPasswordWarning = false;
|
showNoMasterPasswordWarning = false;
|
||||||
isOnSecretsManagerStandalone: boolean;
|
isOnSecretsManagerStandalone: boolean;
|
||||||
remainingSeats$: Observable<number>;
|
|
||||||
|
|
||||||
protected organization$: Observable<Organization>;
|
protected organization$: Observable<Organization>;
|
||||||
protected collectionAccessItems: AccessItemView[] = [];
|
protected collectionAccessItems: AccessItemView[] = [];
|
||||||
@ -251,10 +250,6 @@ export class MemberDialogComponent implements OnDestroy {
|
|||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.remainingSeats$ = this.organization$.pipe(
|
|
||||||
map((organization) => organization.seats - this.params.numConfirmedMembers),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private setFormValidators(organization: Organization) {
|
private setFormValidators(organization: Organization) {
|
||||||
|
@ -3218,9 +3218,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"inviteSingleEmailDesc": {
|
|
||||||
"message": "You have 1 invite remaining."
|
|
||||||
},
|
|
||||||
"userUsingTwoStep": {
|
"userUsingTwoStep": {
|
||||||
"message": "This user is using two-step login to protect their account."
|
"message": "This user is using two-step login to protect their account."
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user