From a5b21127125cce7e75b42455d4380e7cb56f6f74 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Fri, 27 Apr 2018 21:50:05 -0400 Subject: [PATCH] Add counts for bundles with count greater than one --- src/components/item_card/BundleButton.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/item_card/BundleButton.vue b/src/components/item_card/BundleButton.vue index fc4570d..c4e26c9 100644 --- a/src/components/item_card/BundleButton.vue +++ b/src/components/item_card/BundleButton.vue @@ -4,7 +4,7 @@ - {{bundleItem.bundle.name}} + {{bundleItem.bundle.name}}{{numberInBundle}} @@ -32,6 +32,9 @@ export default { }, NotInBundleIcon () { return faSquare + }, + numberInBundle () { + return this.bundleItem.count > 1 ? ` (${this.bundleItem.count})` : '' } }, methods: {