diff --git a/src/dashboard/scoreko-dev/components/GamePackDownloadDialog.vue b/src/dashboard/scoreko-dev/components/GamePackDownloadDialog.vue index ff8d333..403baec 100644 --- a/src/dashboard/scoreko-dev/components/GamePackDownloadDialog.vue +++ b/src/dashboard/scoreko-dev/components/GamePackDownloadDialog.vue @@ -6,6 +6,7 @@ // ───────────────────────────────────────────────────────────────────────────── import { computed, watch } from 'vue'; +import { getPackLogoUrl } from '../../../shared/pack-config'; import type { PackRegistryEntry } from '../../../shared/pack-types'; import { usePackRegistry } from '../composables/usePackRegistry'; @@ -48,15 +49,13 @@ const isError = computed(() => downloadState.value?.status === 'error'); const progress = computed(() => downloadState.value?.progress ?? 0); -const logoUrl = computed(() => - props.packEntry ? packRegistry.getLocalLogoUrl(props.packEntry.id) : '', -); - -const giteaLogoUrl = computed(() => - props.packEntry - ? `${packRegistry.registry.value ? '' : ''}` // resolved from packEntry.logoPath via Gitea - : '', -); +// Pre-install: show logo directly from Gitea (pack not on disk yet). +// Update mode: pack is installed, serve from local /packs/ route. +const logoSrc = computed(() => { + if (!props.packEntry) return ''; + if (props.isUpdate) return packRegistry.getLocalLogoUrl(props.packEntry.id); + return getPackLogoUrl(props.packEntry.id); +}); // Close automatically once download completes and emit so parent sets the game watch(isDone, (done) => { @@ -98,8 +97,15 @@ const close = () => emit('update:modelValue', false); {{ packEntry.name }}