[ui] limit job display to 3

feat/vaults
Tomáš Mládek 2022-02-19 17:00:55 +01:00
parent a4a5ab7f32
commit 99edcf2fd9
No known key found for this signature in database
GPG Key ID: 65E225C8B3E2ED8A
1 changed files with 6 additions and 1 deletions

View File

@ -44,12 +44,17 @@
}); });
</script> </script>
{#each activeJobs as job (job.id)} {#each activeJobs.slice(0, 3) as job (job.id)}
<div class="job" transition:fade> <div class="job" transition:fade>
<div class="job-label">{job.title}</div> <div class="job-label">{job.title}</div>
<ProgessBar value={job.progress} /> <ProgessBar value={job.progress} />
</div> </div>
{/each} {/each}
{#if activeJobs.length > 3}
<div class="job-annotation">
+ {activeJobs.length - 3} more jobs...
</div>
{/if}
<style scoped lang="scss"> <style scoped lang="scss">
.job { .job {