feat(core): impl team workspace (#8920)
AF-1738 AF-1735 AF-1731 AF-1721 AF-1717 AF-1736 AF-1727 AF-1719 AF-1877 UI for team workspaces : - add upgrade to team & successful upgrade page ( `/upgrade-to-team` & `/upgrade-success/team`) - update team plans on pricing page ( settings —> pricing plans ) - update reaching the usage/member limit modal - update invite member modal - update member CRUD options
This commit is contained in:
@@ -27,6 +27,9 @@ export class SubscriptionPrices extends Entity {
|
||||
aiPrice$ = this.prices$.map(prices =>
|
||||
prices ? prices.find(price => price.plan === 'AI') : null
|
||||
);
|
||||
teamPrice$ = this.prices$.map(prices =>
|
||||
prices ? prices.find(price => price.plan === 'Team') : null
|
||||
);
|
||||
|
||||
readableLifetimePrice$ = this.proPrice$.map(price =>
|
||||
price?.lifetimeAmount
|
||||
|
||||
@@ -42,6 +42,11 @@ export class Subscription extends Entity {
|
||||
? subscriptions.find(sub => sub.plan === SubscriptionPlan.AI)
|
||||
: null
|
||||
);
|
||||
team$ = this.subscription$.map(subscriptions =>
|
||||
subscriptions
|
||||
? subscriptions.find(sub => sub.plan === SubscriptionPlan.Team)
|
||||
: null
|
||||
);
|
||||
isBeliever$ = this.pro$.map(
|
||||
sub => sub?.recurring === SubscriptionRecurring.Lifetime
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user