Quellcode durchsuchen

Adds hide GL+ link to home on trial expired status

See #2407
main
Keith Daulton vor 1 Jahr
Ursprung
Commit
485cef4554
1 geänderte Dateien mit 20 neuen und 10 gelöschten Zeilen
  1. +20
    -10
      src/webviews/apps/home/components/plus-banner.ts

+ 20
- 10
src/webviews/apps/home/components/plus-banner.ts Datei anzeigen

@ -20,16 +20,6 @@ const template = html`
>Try GitLens+ features on private repos</vscode-button
>
</p>
<p class="mb-0">
${when(
x => x.plus,
html<PlusBanner>`<a class="minimal" href="command:gitlens.plus.hide">Hide GitLens+ features</a>`,
)}
${when(
x => !x.plus,
html<PlusBanner>`<a href="command:gitlens.plus.restore">Restore GitLens+ features</a>`,
)}
</p>
`,
)}
${when(
@ -121,6 +111,26 @@ const template = html`
</p>
`,
)}
${when(
x =>
[
SubscriptionState.Free,
SubscriptionState.FreePreviewTrialExpired,
SubscriptionState.FreePlusTrialExpired,
].includes(x.state),
html<PlusBanner>`
<p class="mb-0">
${when(
x => x.plus,
html<PlusBanner>`<a class="minimal" href="command:gitlens.plus.hide">Hide GitLens+ features</a>`,
)}
${when(
x => !x.plus,
html<PlusBanner>`<a href="command:gitlens.plus.restore">Restore GitLens+ features</a>`,
)}
</p>
`,
)}
`;
const styles = css`

Laden…
Abbrechen
Speichern