mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 11:43:46 +00:00
Merge remote-tracking branch 'origin/feature/sm-billing' into ac/AC-1473-badge-for-SM-beta-ending
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
|
||||||
<div>
|
<div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-6">
|
<div class="form-group col-8">
|
||||||
<label for="newSeatCount">{{ "subscriptionSeats" | i18n }}</label>
|
<label for="newSeatCount">{{ "subscriptionSeats" | i18n }}</label>
|
||||||
<input
|
<input
|
||||||
id="newSeatCount"
|
id="newSeatCount"
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
<label for="maxAutoscaleSeats">{{ "maxSeatLimit" | i18n }}</label>
|
<label for="maxAutoscaleSeats">{{ "maxSeatLimit" | i18n }}</label>
|
||||||
<input
|
<input
|
||||||
id="maxAutoscaleSeats"
|
id="maxAutoscaleSeats"
|
||||||
class="form-control col-6"
|
class="form-control col-8"
|
||||||
type="number"
|
type="number"
|
||||||
name="MaxAutoscaleSeats"
|
name="MaxAutoscaleSeats"
|
||||||
[(ngModel)]="newMaxSeats"
|
[(ngModel)]="newMaxSeats"
|
||||||
|
|||||||
@@ -116,14 +116,15 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
|
|||||||
this.showSecretsManagerSubscribe =
|
this.showSecretsManagerSubscribe =
|
||||||
this.userOrg.canEditSubscription &&
|
this.userOrg.canEditSubscription &&
|
||||||
!this.userOrg.useSecretsManager &&
|
!this.userOrg.useSecretsManager &&
|
||||||
|
this.subscription != null &&
|
||||||
!this.subscription.cancelled &&
|
!this.subscription.cancelled &&
|
||||||
!this.subscriptionMarkedForCancel;
|
!this.subscriptionMarkedForCancel;
|
||||||
|
|
||||||
this.showAdjustSecretsManager =
|
this.showAdjustSecretsManager =
|
||||||
this.userOrg.canEditSubscription &&
|
this.userOrg.canEditSubscription &&
|
||||||
this.userOrg.useSecretsManager &&
|
this.userOrg.useSecretsManager &&
|
||||||
this.sub.secretsManagerPlan != null &&
|
this.subscription != null &&
|
||||||
this.sub.secretsManagerPlan.hasAdditionalSeatsOption &&
|
this.sub.secretsManagerPlan?.hasAdditionalSeatsOption &&
|
||||||
!this.subscription.cancelled &&
|
!this.subscription.cancelled &&
|
||||||
!this.subscriptionMarkedForCancel;
|
!this.subscriptionMarkedForCancel;
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ export class PlanResponse extends BaseResponse {
|
|||||||
maxServiceAccount: number;
|
maxServiceAccount: number;
|
||||||
hasAdditionalServiceAccountOption: boolean;
|
hasAdditionalServiceAccountOption: boolean;
|
||||||
maxProjects: number;
|
maxProjects: number;
|
||||||
|
maxAdditionalServiceAccounts: number;
|
||||||
|
stripeServiceAccountPlanId: string;
|
||||||
|
|
||||||
constructor(response: any) {
|
constructor(response: any) {
|
||||||
super(response);
|
super(response);
|
||||||
@@ -109,5 +111,7 @@ export class PlanResponse extends BaseResponse {
|
|||||||
"HasAdditionalServiceAccountOption"
|
"HasAdditionalServiceAccountOption"
|
||||||
);
|
);
|
||||||
this.maxProjects = this.getResponseProperty("MaxProjects");
|
this.maxProjects = this.getResponseProperty("MaxProjects");
|
||||||
|
this.maxAdditionalServiceAccounts = this.getResponseProperty("MaxAdditionalServiceAccounts");
|
||||||
|
this.stripeServiceAccountPlanId = this.getResponseProperty("StripeServiceAccountPlanId");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user