feat: Remove successful model downloads (#1710)

* feat: Remove successful model downloads

* PR comments

---------

Co-authored-by: Oto Ciulis <oto.ciulis@gmail.com>
This commit is contained in:
oto-ciulis-tt
2024-11-27 07:40:43 -08:00
committed by GitHub
parent 1ac6d6529f
commit 2d022e4e49
3 changed files with 14 additions and 9 deletions

View File

@@ -1,10 +1,10 @@
<template>
<div class="mx-6 mb-4" v-if="downloads.length > 0">
<div class="mx-6 mb-4" v-if="inProgressDownloads.length > 0">
<div class="text-lg my-4">
{{ $t('electronFileDownload.inProgress') }}
</div>
<template v-for="download in downloads" :key="download.url">
<template v-for="download in inProgressDownloads" :key="download.url">
<DownloadItem :download="download" />
</template>
</div>
@@ -16,5 +16,5 @@ import { useElectronDownloadStore } from '@/stores/electronDownloadStore'
import { storeToRefs } from 'pinia'
const electronDownloadStore = useElectronDownloadStore()
const { downloads } = storeToRefs(electronDownloadStore)
const { inProgressDownloads } = storeToRefs(electronDownloadStore)
</script>