only show specific board settings when in game board

This commit is contained in:
Roman Cervantes 2019-07-16 10:39:24 -07:00
parent 3602efc1ac
commit ba15840828

View file

@ -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)}`;
},