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"> <p class="text-13 text-body modal-caption">
{#if status === 'UPTODATE'} {#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} {:else}
Upgrade now for the latest features. Upgrade now for the latest features.
<br /> <br />
@ -85,6 +85,10 @@
Cancel Cancel
</Button> </Button>
{/if} {/if}
{#if status === 'UPTODATE'}
<Button style="pop" kind="solid" wide outline onclick={handleDismiss}>Got it!</Button>
{:else}
<Button <Button
style="pop" style="pop"
kind="solid" kind="solid"
@ -104,6 +108,7 @@
Download {version} Download {version}
{/if} {/if}
</Button> </Button>
{/if}
</div> </div>
</Modal> </Modal>