Skip to content

Commit

Permalink
Renames tooltip to tie to the command
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Aug 21, 2024
1 parent ec01261 commit d659c10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/plus/gk/account/promos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface Promo {
readonly startsOn?: number;

readonly command?: `command:${string}`;
readonly linkTooltip?: string;
readonly commandTooltip?: string;
}

// Must be ordered by applicable order
Expand All @@ -23,7 +23,7 @@ const promos: Promo[] = [
SubscriptionState.FreePlusTrialReactivationEligible,
],
expiresOn: new Date('2024-09-05T06:59:00.000Z').getTime(),
linkTooltip: 'Sale: Save up to 80% on GitLens Pro - lowest price of the year!',
commandTooltip: 'Sale: Save up to 80% on GitLens Pro - lowest price of the year!',
},
{
key: 'pro50',
Expand All @@ -34,7 +34,7 @@ const promos: Promo[] = [
SubscriptionState.FreePlusTrialExpired,
SubscriptionState.FreePlusTrialReactivationEligible,
],
linkTooltip: 'Special: 1st seat of Pro is now 50%+ off. See your special price.',
commandTooltip: 'Special: 1st seat of Pro is now 50%+ off. See your special price.',
},
];

Expand Down
2 changes: 1 addition & 1 deletion src/webviews/apps/shared/components/promo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class GlPromo extends LitElement {
return html`<a
class="link"
href="${this.promo.command ?? 'command:gitlens.plus.upgrade'}"
title="${this.promo.linkTooltip}"
title="${this.promo.commandTooltip}"
>${promoHtml}</a
>`;
}
Expand Down

0 comments on commit d659c10

Please sign in to comment.