Skip to content

Commit

Permalink
Merge pull request #1264 from rommapp/fix/source-image-manual-match
Browse files Browse the repository at this point in the history
fix: Show source image on each result for Manual match
  • Loading branch information
adamantike authored Oct 29, 2024
2 parents 6410b6b + 1c7880b commit 4f78f3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/components/common/Game/Dialog/MatchRom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { useDisplay, useTheme } from "vuetify";
type MatchedSource = {
url_cover: string | undefined;
name: "IGDB" | "Mobygames";
logo_path: string;
};
// Props
Expand Down Expand Up @@ -126,10 +127,12 @@ function showSources(matchedRom: SearchRomSchema) {
sources.value.push({
url_cover: matchedRom.igdb_url_cover,
name: "IGDB",
logo_path: "/assets/scrappers/igdb.png",
});
sources.value.push({
url_cover: matchedRom.moby_url_cover,
name: "Mobygames",
logo_path: "/assets/scrappers/moby.png",
});
}
Expand Down Expand Up @@ -408,9 +411,7 @@ onBeforeUnmount(() => {
</template>
<v-row no-gutters class="text-white pa-1">
<v-avatar class="mr-1" size="30" rounded="1">
<v-img
:src="`/assets/scrappers/${source.name}.png`"
/>
<v-img :src="source.logo_path" />
</v-avatar>
</v-row>
</v-img>
Expand Down

0 comments on commit 4f78f3b

Please sign in to comment.