ソースを参照

Adds hide GL+ link to home on trial expired status

See #2407
main
Keith Daulton 1年前
コミット
485cef4554
1個のファイルの変更20行の追加10行の削除
  1. +20
    -10
      src/webviews/apps/home/components/plus-banner.ts

+ 20
- 10
src/webviews/apps/home/components/plus-banner.ts ファイルの表示

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

読み込み中…
キャンセル
保存