mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-01 18:08:19 +01:00
Add the free family policy behind flag
This commit is contained in:
parent
91c2e305f1
commit
a8cd718405
@ -20,10 +20,17 @@ export class AppComponent extends BaseAppComponent implements OnInit {
|
|||||||
this.policyListService.addPolicies([
|
this.policyListService.addPolicies([
|
||||||
new MaximumVaultTimeoutPolicy(),
|
new MaximumVaultTimeoutPolicy(),
|
||||||
new DisablePersonalVaultExportPolicy(),
|
new DisablePersonalVaultExportPolicy(),
|
||||||
new FreeFamiliesSponsorshipPolicy(),
|
|
||||||
new ActivateAutofillPolicy(),
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
this.configService
|
||||||
|
.getFeatureFlag(FeatureFlag.DisableFreeFamiliesSponsorship)
|
||||||
|
.then((isFreeFamilyEnabled) => {
|
||||||
|
if (isFreeFamilyEnabled) {
|
||||||
|
this.policyListService.addPolicies([new FreeFamiliesSponsorshipPolicy()]);
|
||||||
|
}
|
||||||
|
this.policyListService.addPolicies([new ActivateAutofillPolicy()]);
|
||||||
|
});
|
||||||
|
|
||||||
this.configService.getFeatureFlag(FeatureFlag.IdpAutoSubmitLogin).then((enabled) => {
|
this.configService.getFeatureFlag(FeatureFlag.IdpAutoSubmitLogin).then((enabled) => {
|
||||||
if (
|
if (
|
||||||
enabled &&
|
enabled &&
|
||||||
|
@ -36,6 +36,7 @@ export enum FeatureFlag {
|
|||||||
AccessIntelligence = "pm-13227-access-intelligence",
|
AccessIntelligence = "pm-13227-access-intelligence",
|
||||||
Pm13322AddPolicyDefinitions = "pm-13322-add-policy-definitions",
|
Pm13322AddPolicyDefinitions = "pm-13322-add-policy-definitions",
|
||||||
LimitCollectionCreationDeletionSplit = "pm-10863-limit-collection-creation-deletion-split",
|
LimitCollectionCreationDeletionSplit = "pm-10863-limit-collection-creation-deletion-split",
|
||||||
|
DisableFreeFamiliesSponsorship = "PM-12274-disable-free-families-sponsorship",
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AllowedFeatureFlagTypes = boolean | number | string;
|
export type AllowedFeatureFlagTypes = boolean | number | string;
|
||||||
@ -82,6 +83,7 @@ export const DefaultFeatureFlagValue = {
|
|||||||
[FeatureFlag.AccessIntelligence]: FALSE,
|
[FeatureFlag.AccessIntelligence]: FALSE,
|
||||||
[FeatureFlag.Pm13322AddPolicyDefinitions]: FALSE,
|
[FeatureFlag.Pm13322AddPolicyDefinitions]: FALSE,
|
||||||
[FeatureFlag.LimitCollectionCreationDeletionSplit]: FALSE,
|
[FeatureFlag.LimitCollectionCreationDeletionSplit]: FALSE,
|
||||||
|
[FeatureFlag.DisableFreeFamiliesSponsorship]: FALSE,
|
||||||
} satisfies Record<FeatureFlag, AllowedFeatureFlagTypes>;
|
} satisfies Record<FeatureFlag, AllowedFeatureFlagTypes>;
|
||||||
|
|
||||||
export type DefaultFeatureFlagValueType = typeof DefaultFeatureFlagValue;
|
export type DefaultFeatureFlagValueType = typeof DefaultFeatureFlagValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user