mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-28 13:26:16 +03:00
Update AppUpdater.svelte
- update copy - show the `tick` icon if the app is "UPTODATE" - fix the background for the loading scale - don't show the slide animation if the app is "UPTODATE" or "ERROR"
This commit is contained in:
parent
132336c1da
commit
d56973a56e
@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="img">
|
<div class="img">
|
||||||
<div class="circle-img">
|
<div class="circle-img">
|
||||||
{#if status !== 'DONE'}
|
{#if status !== 'DONE' && status !== 'UPTODATE'}
|
||||||
<svg
|
<svg
|
||||||
class="arrow-img"
|
class="arrow-img"
|
||||||
width="12"
|
width="12"
|
||||||
@ -97,7 +97,7 @@
|
|||||||
|
|
||||||
<h4 class="text-13 label">
|
<h4 class="text-13 label">
|
||||||
{#if status === 'UPTODATE'}
|
{#if status === 'UPTODATE'}
|
||||||
You are up-to-date
|
You are up-to-date!
|
||||||
{:else if status === 'PENDING'}
|
{:else if status === 'PENDING'}
|
||||||
Downloading update...
|
Downloading update...
|
||||||
{:else if status === 'DOWNLOADED'}
|
{:else if status === 'DOWNLOADED'}
|
||||||
@ -105,9 +105,9 @@
|
|||||||
{:else if status === 'DONE'}
|
{:else if status === 'DONE'}
|
||||||
Install complete
|
Install complete
|
||||||
{:else if status === 'CHECKING'}
|
{:else if status === 'CHECKING'}
|
||||||
Checking for update
|
Checking for update…
|
||||||
{:else if status === 'ERROR'}
|
{:else if status === 'ERROR'}
|
||||||
Error occurred...
|
Error occurred
|
||||||
{:else if version}
|
{:else if version}
|
||||||
New version available
|
New version available
|
||||||
{/if}
|
{/if}
|
||||||
@ -130,7 +130,9 @@
|
|||||||
</Button>
|
</Button>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="status-section">
|
<div class="status-section">
|
||||||
<div class="sliding-gradient"></div>
|
{#if status !== 'ERROR' && status !== 'UPTODATE'}
|
||||||
|
<div class="sliding-gradient"></div>
|
||||||
|
{/if}
|
||||||
<div class="cta-btn" transition:fade={{ duration: 100 }}>
|
<div class="cta-btn" transition:fade={{ duration: 100 }}>
|
||||||
{#if !status}
|
{#if !status}
|
||||||
<Button
|
<Button
|
||||||
@ -217,6 +219,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
background-color: var(--clr-theme-pop-element);
|
||||||
border-radius: var(--radius-m);
|
border-radius: var(--radius-m);
|
||||||
|
|
||||||
transition:
|
transition:
|
||||||
@ -318,7 +321,6 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: -14px;
|
top: -14px;
|
||||||
left: 7px;
|
left: 7px;
|
||||||
/* transform: translateY(20px); */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tick-img {
|
.tick-img {
|
||||||
|
Loading…
Reference in New Issue
Block a user