Skip to content

Commit 4248354

Browse files
committed
Fixes missing plan replacements in Home webview
1 parent fbe0caa commit 4248354

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/webviews/apps/home/home.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export class HomeApp extends App<State> {
103103
const remaining = getSubscriptionTimeRemaining(subscription, 'days') ?? 0;
104104
DOM.insertTemplate('state:plus-trial', this.$slot1, {
105105
bindings: {
106+
plan: subscription.plan.effective.name,
106107
trialDays: `${remaining === 1 ? `${remaining} day` : `${remaining} days`}`,
107108
},
108109
});
@@ -114,7 +115,7 @@ export class HomeApp extends App<State> {
114115
DOM.insertTemplate(welcomeVisible ? 'welcome' : 'links', this.$slot2);
115116
break;
116117
case SubscriptionState.Paid:
117-
DOM.insertTemplate('state:paid', this.$slot1);
118+
DOM.insertTemplate('state:paid', this.$slot1, { bindings: { plan: subscription.plan.effective.name } });
118119
DOM.insertTemplate(welcomeVisible ? 'welcome' : 'links', this.$slot2);
119120
break;
120121
}

src/webviews/apps/home/partials/state.plus-trial.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template id="state:plus-trial">
22
<section>
3-
<h3>GitLens+ Pro Trial</h3>
3+
<h3><span data-bind="plan">GitLens+ Pro</span> Trial</h3>
44
<p>
55
You have <span data-bind="trialDays">7 days</span> left in your
66
<a title="Learn more about GitLens+ features" href="command:gitlens.plus.learn">GitLens+ features</a>

0 commit comments

Comments
 (0)