diff --git a/src/components/sidebar/tabs/modelLibrary/DownloadItem.vue b/src/components/sidebar/tabs/modelLibrary/DownloadItem.vue
index 6f855ede17..a121b5d8f5 100644
--- a/src/components/sidebar/tabs/modelLibrary/DownloadItem.vue
+++ b/src/components/sidebar/tabs/modelLibrary/DownloadItem.vue
@@ -3,7 +3,7 @@
{{ getDownloadLabel(download.savePath ?? '') }}
-
+
@@ -28,7 +28,7 @@
/>
@@ -284,18 +284,31 @@ const downloadLabel = computed(() => {
return size ? `${base} (${formatSize(size)})` : base
})
-function handleDownload() {
+async function handleDownload() {
const rep = model.representative
if (rep.url && rep.directory) {
- downloadModel(
+ const started = await downloadModel(
{ name: rep.name, url: rep.url, directory: rep.directory },
store.folderPaths
)
+
+ if (started) {
+ store.downloadRefs[modelKey.value] = {
+ kind: 'electron-download',
+ url: rep.url
+ }
+ handleComboSelect(modelKey.value, rep.name)
+ }
} else {
console.warn('[MissingModelRow] Cannot download: missing url or directory')
}
}
+function handleLibraryModelSelect(value: string | undefined) {
+ delete store.downloadRefs[modelKey.value]
+ handleComboSelect(modelKey.value, value)
+}
+
const {
toggleModelExpand,
isModelExpanded,
diff --git a/src/platform/missingModel/components/MissingModelStatusCard.vue b/src/platform/missingModel/components/MissingModelStatusCard.vue
index 7c41445675..8b89001dd3 100644
--- a/src/platform/missingModel/components/MissingModelStatusCard.vue
+++ b/src/platform/missingModel/components/MissingModelStatusCard.vue
@@ -22,11 +22,21 @@
aria-hidden="true"
class="icon-[lucide--circle-alert] size-5 text-destructive-background"
/>
+
+
{{ t('rightSidePanel.missingModels.imported') }}
+
+ {{ t('electronFileDownload.paused') }}
+ {{ Math.round((downloadStatus?.progress ?? 0) * 100) }}%
+
+
+ {{ t('electronFileDownload.cancelled') }}
+
{{
downloadStatus?.error ||
@@ -86,7 +103,7 @@