Pārlūkot izejas kodu

Updates subscription notifications & status bar content

main
Eric Amodio pirms 2 gadiem
vecāks
revīzija
e05e0005f8
2 mainītis faili ar 10 papildinājumiem un 7 dzēšanām
  1. +9
    -6
      src/plus/subscription/subscriptionService.ts
  2. +1
    -1
      src/subscription.ts

+ 9
- 6
src/plus/subscription/subscriptionService.ts Parādīt failu

@ -36,6 +36,7 @@ import {
getSubscriptionTimeRemaining,
getTimeRemaining,
isSubscriptionExpired,
isSubscriptionPaid,
isSubscriptionTrial,
SubscriptionPlanId,
SubscriptionState,
@ -270,11 +271,16 @@ export class SubscriptionService implements Disposable {
if (result === learn) {
this.learn();
}
} else {
} else if (isSubscriptionPaid(this._subscription)) {
void window.showInformationMessage(
`Welcome to ${actual.name}. You now have additional access to GitLens+ features on private repos.`,
'OK',
);
} else {
void window.showInformationMessage(
`Welcome to ${actual.name}. You have access to GitLens+ features on local & public repos.`,
'OK',
);
}
}
return loggedIn;
@ -933,12 +939,9 @@ export class SubscriptionService implements Disposable {
this._statusBarSubscription.text = `${effective.name} (Trial)`;
this._statusBarSubscription.tooltip = new MarkdownString(
`You are currently trialing **${
`You have ${pluralize('day', remaining ?? 0)} left in your **${
effective.name
}**, which gives you access to GitLens+ features on both public and private repos. You have ${pluralize(
'day',
remaining ?? 0,
)} remaining in your trial.\n\nClick for details`,
}** trial, which gives you additional access to GitLens+ features on private repos.\n\nClick for details`,
true,
);
}

+ 1
- 1
src/subscription.ts Parādīt failu

@ -114,7 +114,7 @@ export function getSubscriptionPlan(id: SubscriptionPlanId, startedOn?: Date, ex
export function getSubscriptionPlanName(id: SubscriptionPlanId) {
switch (id) {
case SubscriptionPlanId.FreePlus:
return 'GitLens';
return 'GitLens Free';
case SubscriptionPlanId.Pro:
return 'GitLens Pro';
case SubscriptionPlanId.Teams:

Notiek ielāde…
Atcelt
Saglabāt