Add back button when viewing a game from board

This commit is contained in:
Gamebrary 2022-08-21 17:40:16 -07:00
parent 3b7668a440
commit 35a56925a4
2 changed files with 15 additions and 0 deletions

View file

@ -202,6 +202,7 @@ export default {
params: {
id,
slug: this.games[id].slug,
boardId: this.board.id,
},
});
},

View file

@ -3,6 +3,16 @@
<b-spinner v-if="loading" class="spinner-centered" />
<template v-else-if="game">
<portal to="pageTitle">
<b-button
v-if="originBoardId"
:to="{ name: 'board', params: { id: originBoardId } }"
variant="light"
class="mr-2"
>
<i class="fa-solid fa-chevron-left" />
</b-button>
</portal>
<portal to="headerActions" v-if="user">
<b-button-group class="mr-2">
<b-button
@ -252,6 +262,10 @@ export default {
: news;
},
originBoardId() {
return this.$route?.params?.boardId;
},
// gameAchievements() {
// return this.game?.steam?.achievements || [];
// },