From e85dd71d7a994c3f8601e4018cef67b04c71413c Mon Sep 17 00:00:00 2001 From: Roman Cervantes Date: Wed, 25 Sep 2019 15:20:29 -0700 Subject: [PATCH] moved template logic to method --- src/components/Platforms/Platform.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Platforms/Platform.vue b/src/components/Platforms/Platform.vue index 2eb7a97f..c1b366cf 100644 --- a/src/components/Platforms/Platform.vue +++ b/src/components/Platforms/Platform.vue @@ -10,7 +10,7 @@ /> @@ -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);