Skip to content

Commit 11a927b

Browse files
committed
Adds helper to get plan tier
1 parent e9c234f commit 11a927b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/plus/gk/account/subscription.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,22 @@ export function getSubscriptionPlan(
175175
}
176176

177177
export function getSubscriptionPlanName(id: SubscriptionPlanId) {
178+
return `GitLens ${getSubscriptionPlanTier(id)}`;
179+
}
180+
181+
export function getSubscriptionPlanTier(id: SubscriptionPlanId) {
178182
switch (id) {
179183
case SubscriptionPlanId.CommunityWithAccount:
180-
return 'GitLens Community';
184+
return 'Community';
181185
case SubscriptionPlanId.Pro:
182-
return 'GitLens Pro';
186+
return 'Pro';
183187
case SubscriptionPlanId.Teams:
184-
return 'GitLens Teams';
188+
return 'Teams';
185189
case SubscriptionPlanId.Enterprise:
186-
return 'GitLens Enterprise';
190+
return 'Enterprise';
187191
case SubscriptionPlanId.Community:
188192
default:
189-
return 'GitLens Community';
193+
return 'Community';
190194
}
191195
}
192196

0 commit comments

Comments
 (0)