mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
Cleaned up feature flag logic now that it's released (#7030)
This commit is contained in:
parent
641ae844fb
commit
c1963f1bc3
@ -68,11 +68,7 @@
|
||||
</ng-container>
|
||||
<ng-template #nonEnterprisePlans>
|
||||
<ng-container
|
||||
*ngIf="
|
||||
teamsStarterPlanFeatureFlagIsEnabled &&
|
||||
selectableProduct.product === productTypes.Teams;
|
||||
else fullFeatureList
|
||||
"
|
||||
*ngIf="selectableProduct.product === productTypes.Teams; else fullFeatureList"
|
||||
>
|
||||
<small>• {{ "includeAllTeamsStarterFeatures" | i18n }}</small>
|
||||
<small>• {{ "chooseMonthlyOrAnnualBilling" | i18n }}</small>
|
||||
|
@ -255,10 +255,6 @@ export class OrganizationPlansComponent implements OnInit, OnDestroy {
|
||||
return result;
|
||||
}
|
||||
|
||||
get teamsStarterPlanFeatureFlagIsEnabled(): boolean {
|
||||
return this.passwordManagerPlans.some((plan) => plan.product === ProductType.TeamsStarter);
|
||||
}
|
||||
|
||||
get hasProvider() {
|
||||
return this.providerId != null;
|
||||
}
|
||||
@ -420,13 +416,8 @@ export class OrganizationPlansComponent implements OnInit, OnDestroy {
|
||||
if (!this.formGroup.controls.businessOwned.value || this.selectedPlan.canBeUsedByBusiness) {
|
||||
return;
|
||||
}
|
||||
if (this.teamsStarterPlanFeatureFlagIsEnabled) {
|
||||
this.formGroup.controls.product.setValue(ProductType.TeamsStarter);
|
||||
this.formGroup.controls.plan.setValue(PlanType.TeamsStarter);
|
||||
} else {
|
||||
this.formGroup.controls.product.setValue(ProductType.Teams);
|
||||
this.formGroup.controls.plan.setValue(PlanType.TeamsAnnually);
|
||||
}
|
||||
this.formGroup.controls.product.setValue(ProductType.TeamsStarter);
|
||||
this.formGroup.controls.plan.setValue(PlanType.TeamsStarter);
|
||||
this.changedProduct();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user