Added alternative names to game modal

This commit is contained in:
Gamebrary 2021-01-07 15:51:25 -07:00
parent c707e106ce
commit 554aff05d5
2 changed files with 13 additions and 0 deletions

View file

@ -170,6 +170,7 @@ exports.game = functions.https.onRequest((req, res) => {
release_dates.date,
websites.category,
websites.url,
alternative_names.*,
age_ratings.*,
videos.video_id,
rating,

View file

@ -144,6 +144,18 @@
<template v-else>
<p class="text-left">{{ game.summary }}</p>
<b-alert show variant="secondary" v-if="game.alternative_names">
<strong>Also known as:</strong>
<ul>
<li
v-for="alternativeName in game.alternative_names"
:key="alternativeName.id"
>
{{ alternativeName.name }} ({{ alternativeName.comment }})
</li>
</ul>
</b-alert>
<game-details :game="game" />
<game-websites :game="game" />
</template>