mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 12:13:08 +00:00
moved template logic to method
This commit is contained in:
parent
62b6532a65
commit
e85dd71d7a
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
/>
|
||||
|
||||
<span
|
||||
v-if="ownedPlatform(platform.code) && getGameCount(platform.code) > 0"
|
||||
v-if="showCount(platform)"
|
||||
:class="['game-count', textColor]"
|
||||
>
|
||||
<i class="fas fa-gamepad" />
|
||||
|
@ -56,6 +56,10 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
showCount({ code }) {
|
||||
return this.ownedPlatform(code) && this.getGameCount(code) > 0
|
||||
},
|
||||
|
||||
changePlatform() {
|
||||
if (this.clickable) {
|
||||
this.$store.commit('SET_PLATFORM', this.platform);
|
||||
|
|
Loading…
Reference in a new issue