-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1045 from rommapp/hotfix-related-games
Hotfix and link from related games
- Loading branch information
Showing
2 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<script setup lang="ts"> | ||
import RelatedCard from "@/components/common/Game/Card/Related.vue"; | ||
import type { DetailedRom } from "@/stores/roms"; | ||
import { ref } from "vue"; | ||
import { computed } from "vue"; | ||
const props = defineProps<{ rom: DetailedRom }>(); | ||
const combined = ref([ | ||
const games = computed(() => [ | ||
...(props.rom.igdb_metadata?.remakes ?? []), | ||
...(props.rom.igdb_metadata?.remasters ?? []), | ||
...(props.rom.igdb_metadata?.expanded_games ?? []), | ||
]); | ||
</script> | ||
<template> | ||
<v-row no-gutters> | ||
<v-col cols="4" sm="3" md="6" v-for="rom in combined"> | ||
<related-card :rom="rom" /> | ||
<v-col cols="4" sm="3" md="6" v-for="game in games"> | ||
<related-card :game="game" /> | ||
</v-col> | ||
</v-row> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters