From 4ce12bcbd3b4cbe63e4d2768b0a0612e173d61c8 Mon Sep 17 00:00:00 2001 From: padreug Date: Mon, 8 Sep 2025 19:06:44 +0200 Subject: [PATCH] Refactor MerchantStore component for improved form handling and validation - Remove unnecessary keys from form fields in the stall creation dialog to simplify the structure. - Ensure the description field is now required, enhancing validation for store creation. - Update the dialog button to type "button" for better clarity in user interactions. - Streamline the handling of the description field in the API request, ensuring it defaults to an empty string if not provided. These changes enhance the user experience during store creation by improving form validation and simplifying the component structure. --- src/modules/market/components/MerchantStore.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/modules/market/components/MerchantStore.vue b/src/modules/market/components/MerchantStore.vue index 2666af1..3e6896f 100644 --- a/src/modules/market/components/MerchantStore.vue +++ b/src/modules/market/components/MerchantStore.vue @@ -449,13 +449,13 @@ - + Create New Store -
+
@@ -466,7 +466,6 @@ placeholder="Enter your store name" :disabled="isCreatingStall" v-bind="componentField" - :key="`store-name-${formKey}`" autocomplete="off" spellcheck="false" /> @@ -486,7 +485,6 @@ placeholder="Describe your store and products" :disabled="isCreatingStall" v-bind="componentField" - :key="`store-description-${formKey}`" autocomplete="off" spellcheck="false" /> @@ -644,6 +642,7 @@