show dismiss button if up-to-date

This commit is contained in:
Mattias Granlund 2024-08-16 17:22:27 +01:00
parent 422ce4f308
commit 238a26b4ae

View File

@ -66,7 +66,7 @@
<p class="text-13 text-body modal-caption">
{#if status === 'UPTODATE'}
You're on GitButler {currentVersion}, which is the most up-to-date version.
You're on GitButler {$currentVersion}, which is the most up-to-date version.
{:else}
Upgrade now for the latest features.
<br />
@ -85,6 +85,10 @@
Cancel
</Button>
{/if}
{#if status === 'UPTODATE'}
<Button style="pop" kind="solid" wide outline onclick={handleDismiss}>Got it!</Button>
{:else}
<Button
style="pop"
kind="solid"
@ -104,6 +108,7 @@
Download {version}
{/if}
</Button>
{/if}
</div>
</Modal>