mirror of
https://github.com/romancm/gamebrary
synced 2024-09-20 13:51:56 +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,
|
release_dates.date,
|
||||||
websites.category,
|
websites.category,
|
||||||
websites.url,
|
websites.url,
|
||||||
|
alternative_names.*,
|
||||||
age_ratings.*,
|
age_ratings.*,
|
||||||
videos.video_id,
|
videos.video_id,
|
||||||
rating,
|
rating,
|
||||||
|
|
|
@ -144,6 +144,18 @@
|
||||||
|
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<p class="text-left">{{ game.summary }}</p>
|
<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-details :game="game" />
|
||||||
<game-websites :game="game" />
|
<game-websites :game="game" />
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue