mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
[AC-2708] Upgrading from a password manager only subscription (#10320)
* Add changes for the upgrade dialog * Resolve the free org to any org type besides Families * Resolve the pr comments on navigation * resolve family plan upgrade from free
This commit is contained in:
@@ -5,3 +5,4 @@ export * from "./transaction-type.enum";
|
||||
export * from "./bitwarden-product-type.enum";
|
||||
export * from "./product-tier-type.enum";
|
||||
export * from "./product-type.enum";
|
||||
export * from "./plan-interval.enum";
|
||||
|
||||
4
libs/common/src/billing/enums/plan-interval.enum.ts
Normal file
4
libs/common/src/billing/enums/plan-interval.enum.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export enum PlanInterval {
|
||||
Monthly = 0,
|
||||
Annually = 1,
|
||||
}
|
||||
@@ -5,3 +5,11 @@ export enum ProductTierType {
|
||||
Enterprise = 3,
|
||||
TeamsStarter = 4,
|
||||
}
|
||||
|
||||
export function isNotSelfUpgradable(productType: ProductTierType): boolean {
|
||||
return (
|
||||
productType !== ProductTierType.Free &&
|
||||
productType !== ProductTierType.TeamsStarter &&
|
||||
productType !== ProductTierType.Families
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user