mirror of
https://github.com/romancm/gamebrary
synced 2024-11-10 13:44:16 +00:00
Added alternative names to game modal
This commit is contained in:
parent
c707e106ce
commit
554aff05d5
2 changed files with 13 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue