mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
fix(web): show supporter badge for account less than 14 days (#12058)
This commit is contained in:
parent
edf47dbbd0
commit
f4371578f5
1 changed files with 38 additions and 40 deletions
|
@ -76,7 +76,6 @@
|
||||||
<LicenseModal onClose={() => (isOpen = false)} />
|
<LicenseModal onClose={() => (isOpen = false)} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if getAccountAge() > 14}
|
|
||||||
<div class="hidden md:block license-status pl-4 text-sm">
|
<div class="hidden md:block license-status pl-4 text-sm">
|
||||||
{#if $isPurchased && $preferences.purchase.showSupportBadge}
|
{#if $isPurchased && $preferences.purchase.showSupportBadge}
|
||||||
<button
|
<button
|
||||||
|
@ -86,7 +85,7 @@
|
||||||
>
|
>
|
||||||
<SupporterBadge />
|
<SupporterBadge />
|
||||||
</button>
|
</button>
|
||||||
{:else if !$isPurchased && showBuyButton}
|
{:else if !$isPurchased && showBuyButton && getAccountAge() > 14}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
on:click={openPurchaseModal}
|
on:click={openPurchaseModal}
|
||||||
|
@ -117,7 +116,6 @@
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
|
||||||
|
|
||||||
<Portal target="body">
|
<Portal target="body">
|
||||||
{#if showMessage}
|
{#if showMessage}
|
||||||
|
|
Loading…
Reference in a new issue