1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-29 04:17:41 +02:00

Cleaned up feature flag logic now that it's released (#7030)

This commit is contained in:
Conner Turnbull 2023-12-04 08:16:43 -05:00 committed by GitHub
parent 641ae844fb
commit c1963f1bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 16 deletions

View File

@ -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>

View File

@ -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();
}