Ver a proveniência

Updates GL+ messaging in worktrees

main
Keith Daulton há 2 anos
ascendente
cometimento
ff19aeff28
1 ficheiros alterados com 6 adições e 8 eliminações
  1. +6
    -8
      src/views/worktreesView.ts

+ 6
- 8
src/views/worktreesView.ts Ver ficheiro

@ -148,20 +148,18 @@ export class WorktreesView extends ViewBase
switch (subscription.state) {
case SubscriptionState.Free:
case SubscriptionState.FreePreviewTrialExpired:
case SubscriptionState.VerificationRequired:
case SubscriptionState.FreePlusTrialExpired:
this.description = '✨ GitLens+ feature';
break;
case SubscriptionState.FreeInPreviewTrial: {
const days = getSubscriptionTimeRemaining(subscription, 'days')!;
this.description = `✨⏳ ${pluralize('more day', days)} to try worktrees on public and private repos`;
break;
}
case SubscriptionState.FreeInPreviewTrial:
case SubscriptionState.FreePlusInTrial: {
const days = getSubscriptionTimeRemaining(subscription, 'days')!;
this.description = ` ${pluralize('more day', days)} to try worktrees on private repos`;
this.description = `✨ GitLens Pro (Trial), ${days < 1 ? '<1 day' : pluralize('day', days)} left`;
break;
}
case SubscriptionState.FreePlusTrialExpired:
case SubscriptionState.VerificationRequired:
this.description = `${subscription.plan.effective.name} (Unverified)`;
break;
case SubscriptionState.Paid:
this.description = undefined;
}

Carregando…
Cancelar
Guardar