mirror of
https://github.com/romancm/gamebrary
synced 2024-11-23 03:33:06 +00:00
Add back button when viewing a game from board
This commit is contained in:
parent
3b7668a440
commit
35a56925a4
2 changed files with 15 additions and 0 deletions
|
@ -202,6 +202,7 @@ export default {
|
|||
params: {
|
||||
id,
|
||||
slug: this.games[id].slug,
|
||||
boardId: this.board.id,
|
||||
},
|
||||
});
|
||||
},
|
||||
|
|
|
@ -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 || [];
|
||||
// },
|
||||
|
|
Loading…
Reference in a new issue