mirror of
https://github.com/romancm/gamebrary
synced 2024-11-28 06:00:22 +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) {
|
||||
return this.gameLists
|
||||
const isOwned = this.gameLists
|
||||
&& this.gameLists[platformCode]
|
||||
&& Object.keys(this.gameLists[platformCode]).length;
|
||||
|
||||
return this.isOwned && this.clickable;
|
||||
},
|
||||
|
||||
getGameCount(platform) {
|
||||
|
|
Loading…
Reference in a new issue