forked from MapComplete/MapComplete
UX: add progress bar to panoramax upload, fix hanging upload in case of multiple selected images, rm old log statements
This commit is contained in:
parent
767bd18234
commit
e33d448055
8 changed files with 35 additions and 22 deletions
|
|
@ -56,17 +56,21 @@
|
|||
<Loading>
|
||||
<div class="w-full flex flex-col">
|
||||
|
||||
<div class="w-full flex justify-between">
|
||||
<div class="w-full flex justify-between gap-x-8">
|
||||
{#if $pending - $failed === 1}
|
||||
<Tr t={t.upload.one.uploading} />
|
||||
{:else if $pending - $failed > 1}
|
||||
<Tr t={t.upload.multiple.uploading.Subs({ count: $pending })} />
|
||||
{/if}
|
||||
{$progress}%
|
||||
</div>
|
||||
<div class="w-full low-interaction h-1">
|
||||
<div class="bg-black h-1" style={`width: calc(${$progress}%)`}></div>
|
||||
{#if $progress !== undefined}
|
||||
{$progress}%
|
||||
{/if}
|
||||
</div>
|
||||
{#if $progress !== undefined}
|
||||
<div class="w-full low-interaction h-1 rounded-full overflow-hidden">
|
||||
<div class="bg-black h-1" style={`width: calc(${$progress}%)`}></div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</Loading>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue