mirror of
https://github.com/romancm/gamebrary
synced 2024-11-30 23:09:14 +00:00
Only show game count when platform is clickable
This commit is contained in:
parent
98d7ba7b80
commit
e885b6a015
1 changed files with 3 additions and 1 deletions
|
@ -63,9 +63,11 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
ownedPlatform(platformCode) {
|
ownedPlatform(platformCode) {
|
||||||
return this.gameLists
|
const isOwned = this.gameLists
|
||||||
&& this.gameLists[platformCode]
|
&& this.gameLists[platformCode]
|
||||||
&& Object.keys(this.gameLists[platformCode]).length;
|
&& Object.keys(this.gameLists[platformCode]).length;
|
||||||
|
|
||||||
|
return this.isOwned && this.clickable;
|
||||||
},
|
},
|
||||||
|
|
||||||
getGameCount(platform) {
|
getGameCount(platform) {
|
||||||
|
|
Loading…
Reference in a new issue