Przeglądaj źródła

Adds hide GL+ link to home on trial expired status

See #2407
main
Keith Daulton 1 rok temu
rodzic
commit
485cef4554
1 zmienionych plików z 20 dodań i 10 usunięć
  1. +20
    -10
      src/webviews/apps/home/components/plus-banner.ts

+ 20
- 10
src/webviews/apps/home/components/plus-banner.ts Wyświetl plik

@ -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`

Ładowanie…
Anuluj
Zapisz