mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-14 10:26:19 +01:00
[PM-11505]Delete the feature flag PM-5864-dollar-threshold (#11436)
* remove the time threshold flag * Remove the time threshold flag
This commit is contained in:
parent
b877624ce3
commit
f33661c31c
@ -48,16 +48,7 @@
|
|||||||
}}</span>
|
}}</span>
|
||||||
</dd>
|
</dd>
|
||||||
<dt>{{ "nextCharge" | i18n }}</dt>
|
<dt>{{ "nextCharge" | i18n }}</dt>
|
||||||
<dd *ngIf="!enableTimeThreshold">
|
<dd>
|
||||||
{{
|
|
||||||
nextInvoice
|
|
||||||
? (nextInvoice.date | date: "mediumDate") +
|
|
||||||
", " +
|
|
||||||
(nextInvoice.amount | currency: "$")
|
|
||||||
: "-"
|
|
||||||
}}
|
|
||||||
</dd>
|
|
||||||
<dd *ngIf="enableTimeThreshold">
|
|
||||||
{{
|
{{
|
||||||
nextInvoice
|
nextInvoice
|
||||||
? (sub.subscription.periodEndDate | date: "mediumDate") +
|
? (sub.subscription.periodEndDate | date: "mediumDate") +
|
||||||
|
@ -38,13 +38,9 @@ export class UserSubscriptionComponent implements OnInit {
|
|||||||
sub: SubscriptionResponse;
|
sub: SubscriptionResponse;
|
||||||
selfHosted = false;
|
selfHosted = false;
|
||||||
cloudWebVaultUrl: string;
|
cloudWebVaultUrl: string;
|
||||||
enableTimeThreshold: boolean;
|
|
||||||
|
|
||||||
cancelPromise: Promise<any>;
|
cancelPromise: Promise<any>;
|
||||||
reinstatePromise: Promise<any>;
|
reinstatePromise: Promise<any>;
|
||||||
protected enableTimeThreshold$ = this.configService.getFeatureFlag$(
|
|
||||||
FeatureFlag.EnableTimeThreshold,
|
|
||||||
);
|
|
||||||
|
|
||||||
protected deprecateStripeSourcesAPI$ = this.configService.getFeatureFlag$(
|
protected deprecateStripeSourcesAPI$ = this.configService.getFeatureFlag$(
|
||||||
FeatureFlag.AC2476_DeprecateStripeSourcesAPI,
|
FeatureFlag.AC2476_DeprecateStripeSourcesAPI,
|
||||||
@ -69,7 +65,6 @@ export class UserSubscriptionComponent implements OnInit {
|
|||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
this.cloudWebVaultUrl = await firstValueFrom(this.environmentService.cloudWebVaultUrl$);
|
this.cloudWebVaultUrl = await firstValueFrom(this.environmentService.cloudWebVaultUrl$);
|
||||||
await this.load();
|
await this.load();
|
||||||
this.enableTimeThreshold = await firstValueFrom(this.enableTimeThreshold$);
|
|
||||||
this.firstLoaded = true;
|
this.firstLoaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,10 +48,7 @@
|
|||||||
<dt [ngClass]="{ 'tw-text-danger': isExpired }">
|
<dt [ngClass]="{ 'tw-text-danger': isExpired }">
|
||||||
{{ "subscriptionExpiration" | i18n }}
|
{{ "subscriptionExpiration" | i18n }}
|
||||||
</dt>
|
</dt>
|
||||||
<dd [ngClass]="{ 'tw-text-danger': isExpired }" *ngIf="!enableTimeThreshold">
|
<dd [ngClass]="{ 'tw-text-danger': isExpired }">
|
||||||
{{ nextInvoice ? (nextInvoice.date | date: "mediumDate") : "-" }}
|
|
||||||
</dd>
|
|
||||||
<dd [ngClass]="{ 'tw-text-danger': isExpired }" *ngIf="enableTimeThreshold">
|
|
||||||
{{ nextInvoice ? (sub.subscription.periodEndDate | date: "mediumDate") : "-" }}
|
{{ nextInvoice ? (sub.subscription.periodEndDate | date: "mediumDate") : "-" }}
|
||||||
</dd>
|
</dd>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -52,7 +52,6 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
|
|||||||
loading = true;
|
loading = true;
|
||||||
locale: string;
|
locale: string;
|
||||||
showUpdatedSubscriptionStatusSection$: Observable<boolean>;
|
showUpdatedSubscriptionStatusSection$: Observable<boolean>;
|
||||||
enableTimeThreshold: boolean;
|
|
||||||
preSelectedProductTier: ProductTierType = ProductTierType.Free;
|
preSelectedProductTier: ProductTierType = ProductTierType.Free;
|
||||||
showSubscription = true;
|
showSubscription = true;
|
||||||
showSelfHost = false;
|
showSelfHost = false;
|
||||||
@ -65,10 +64,6 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
|
|||||||
FeatureFlag.EnableConsolidatedBilling,
|
FeatureFlag.EnableConsolidatedBilling,
|
||||||
);
|
);
|
||||||
|
|
||||||
protected enableTimeThreshold$ = this.configService.getFeatureFlag$(
|
|
||||||
FeatureFlag.EnableTimeThreshold,
|
|
||||||
);
|
|
||||||
|
|
||||||
protected enableUpgradePasswordManagerSub$ = this.configService.getFeatureFlag$(
|
protected enableUpgradePasswordManagerSub$ = this.configService.getFeatureFlag$(
|
||||||
FeatureFlag.EnableUpgradePasswordManagerSub,
|
FeatureFlag.EnableUpgradePasswordManagerSub,
|
||||||
);
|
);
|
||||||
@ -117,7 +112,6 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
|
|||||||
this.showUpdatedSubscriptionStatusSection$ = this.configService.getFeatureFlag$(
|
this.showUpdatedSubscriptionStatusSection$ = this.configService.getFeatureFlag$(
|
||||||
FeatureFlag.AC1795_UpdatedSubscriptionStatusSection,
|
FeatureFlag.AC1795_UpdatedSubscriptionStatusSection,
|
||||||
);
|
);
|
||||||
this.enableTimeThreshold = await firstValueFrom(this.enableTimeThreshold$);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
@ -298,9 +292,6 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
|
|||||||
return this.i18nService.t("subscriptionUpgrade", this.sub.seats.toString());
|
return this.i18nService.t("subscriptionUpgrade", this.sub.seats.toString());
|
||||||
}
|
}
|
||||||
} else if (this.sub.maxAutoscaleSeats === this.sub.seats && this.sub.seats != null) {
|
} else if (this.sub.maxAutoscaleSeats === this.sub.seats && this.sub.seats != null) {
|
||||||
if (!this.enableTimeThreshold) {
|
|
||||||
return this.i18nService.t("subscriptionMaxReached", this.sub.seats.toString());
|
|
||||||
}
|
|
||||||
const seatAdjustmentMessage = this.sub.plan.isAnnual
|
const seatAdjustmentMessage = this.sub.plan.isAnnual
|
||||||
? "annualSubscriptionUserSeatsMessage"
|
? "annualSubscriptionUserSeatsMessage"
|
||||||
: "monthlySubscriptionUserSeatsMessage";
|
: "monthlySubscriptionUserSeatsMessage";
|
||||||
@ -311,21 +302,11 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy
|
|||||||
} else if (this.userOrg.productTierType === ProductTierType.TeamsStarter) {
|
} else if (this.userOrg.productTierType === ProductTierType.TeamsStarter) {
|
||||||
return this.i18nService.t("subscriptionUserSeatsWithoutAdditionalSeatsOption", 10);
|
return this.i18nService.t("subscriptionUserSeatsWithoutAdditionalSeatsOption", 10);
|
||||||
} else if (this.sub.maxAutoscaleSeats == null) {
|
} else if (this.sub.maxAutoscaleSeats == null) {
|
||||||
if (!this.enableTimeThreshold) {
|
|
||||||
return this.i18nService.t("subscriptionUserSeatsUnlimitedAutoscale");
|
|
||||||
}
|
|
||||||
|
|
||||||
const seatAdjustmentMessage = this.sub.plan.isAnnual
|
const seatAdjustmentMessage = this.sub.plan.isAnnual
|
||||||
? "annualSubscriptionUserSeatsMessage"
|
? "annualSubscriptionUserSeatsMessage"
|
||||||
: "monthlySubscriptionUserSeatsMessage";
|
: "monthlySubscriptionUserSeatsMessage";
|
||||||
return this.i18nService.t(seatAdjustmentMessage);
|
return this.i18nService.t(seatAdjustmentMessage);
|
||||||
} else {
|
} else {
|
||||||
if (!this.enableTimeThreshold) {
|
|
||||||
return this.i18nService.t(
|
|
||||||
"subscriptionUserSeatsLimitedAutoscale",
|
|
||||||
this.sub.maxAutoscaleSeats.toString(),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
const seatAdjustmentMessage = this.sub.plan.isAnnual
|
const seatAdjustmentMessage = this.sub.plan.isAnnual
|
||||||
? "annualSubscriptionUserSeatsMessage"
|
? "annualSubscriptionUserSeatsMessage"
|
||||||
: "monthlySubscriptionUserSeatsMessage";
|
: "monthlySubscriptionUserSeatsMessage";
|
||||||
|
@ -17,7 +17,6 @@ export enum FeatureFlag {
|
|||||||
InlineMenuFieldQualification = "inline-menu-field-qualification",
|
InlineMenuFieldQualification = "inline-menu-field-qualification",
|
||||||
MemberAccessReport = "ac-2059-member-access-report",
|
MemberAccessReport = "ac-2059-member-access-report",
|
||||||
TwoFactorComponentRefactor = "two-factor-component-refactor",
|
TwoFactorComponentRefactor = "two-factor-component-refactor",
|
||||||
EnableTimeThreshold = "PM-5864-dollar-threshold",
|
|
||||||
InlineMenuPositioningImprovements = "inline-menu-positioning-improvements",
|
InlineMenuPositioningImprovements = "inline-menu-positioning-improvements",
|
||||||
ProviderClientVaultPrivacyBanner = "ac-2833-provider-client-vault-privacy-banner",
|
ProviderClientVaultPrivacyBanner = "ac-2833-provider-client-vault-privacy-banner",
|
||||||
VaultBulkManagementAction = "vault-bulk-management-action",
|
VaultBulkManagementAction = "vault-bulk-management-action",
|
||||||
@ -63,7 +62,6 @@ export const DefaultFeatureFlagValue = {
|
|||||||
[FeatureFlag.InlineMenuFieldQualification]: FALSE,
|
[FeatureFlag.InlineMenuFieldQualification]: FALSE,
|
||||||
[FeatureFlag.MemberAccessReport]: FALSE,
|
[FeatureFlag.MemberAccessReport]: FALSE,
|
||||||
[FeatureFlag.TwoFactorComponentRefactor]: FALSE,
|
[FeatureFlag.TwoFactorComponentRefactor]: FALSE,
|
||||||
[FeatureFlag.EnableTimeThreshold]: FALSE,
|
|
||||||
[FeatureFlag.InlineMenuPositioningImprovements]: FALSE,
|
[FeatureFlag.InlineMenuPositioningImprovements]: FALSE,
|
||||||
[FeatureFlag.ProviderClientVaultPrivacyBanner]: FALSE,
|
[FeatureFlag.ProviderClientVaultPrivacyBanner]: FALSE,
|
||||||
[FeatureFlag.VaultBulkManagementAction]: FALSE,
|
[FeatureFlag.VaultBulkManagementAction]: FALSE,
|
||||||
|
Loading…
Reference in New Issue
Block a user