From 20df5eeb8f345e7cb39a4955e1ffd8fc1c9bfd10 Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Wed, 8 Feb 2023 15:16:17 -0500 Subject: [PATCH] buy modal complete! --- website/client/src/components/shared/numberIncrement.vue | 3 +++ website/client/src/components/shops/buyModal.vue | 1 + 2 files changed, 4 insertions(+) diff --git a/website/client/src/components/shared/numberIncrement.vue b/website/client/src/components/shared/numberIncrement.vue index d8e3a5525d..e2e00afd93 100644 --- a/website/client/src/components/shared/numberIncrement.vue +++ b/website/client/src/components/shared/numberIncrement.vue @@ -127,6 +127,9 @@ export default { }, }, methods: { + setDefaults () { + this.input = 1; + }, }, }; diff --git a/website/client/src/components/shops/buyModal.vue b/website/client/src/components/shops/buyModal.vue index 4cc9efae20..99110f71c8 100644 --- a/website/client/src/components/shops/buyModal.vue +++ b/website/client/src/components/shops/buyModal.vue @@ -794,6 +794,7 @@ export default { } }, hideDialog () { + this.selectedAmountToBuy = 1; this.$root.$emit('bv::hide::modal', 'buy-modal'); }, getPriceClass () {