mirror of
https://github.com/romancm/gamebrary
synced 2025-02-16 11:08:24 +00:00
only show specific board settings when in game board
This commit is contained in:
parent
3602efc1ac
commit
ba15840828
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
/>
|
||||
</div>
|
||||
|
||||
<template v-if="platform">
|
||||
<template v-if="showBoardSpecificSettings">
|
||||
<div class="settings">
|
||||
<h3>{{ $t('gameBoard.settings.wallpaper') }}</h3>
|
||||
<wallpaper-upload />
|
||||
|
@ -84,6 +84,10 @@ export default {
|
|||
return `Check out my ${this.platform.name} collection at Gamebrary`;
|
||||
},
|
||||
|
||||
showBoardSpecificSettings() {
|
||||
return this.$route.name === 'game-board' && this.platform;
|
||||
},
|
||||
|
||||
tweetUrl() {
|
||||
return `https://twitter.com/intent/tweet?text=${this.shareText}&url=${encodeURIComponent(this.shareUrl)}`;
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue