diff --git a/frontend/src/components/modals/CreateEstimateModal.vue b/frontend/src/components/modals/CreateEstimateModal.vue index d3ba7c3..4c602c3 100644 --- a/frontend/src/components/modals/CreateEstimateModal.vue +++ b/frontend/src/components/modals/CreateEstimateModal.vue @@ -23,7 +23,7 @@ :validate-on-submit="true" :loading="isSubmitting" :disable-on-loading="true" - submit-button-text="Create Client" + submit-button-text="Create Estimate" cancel-button-text="Cancel" @submit="handleSubmit" @cancel="handleCancel" @@ -122,7 +122,7 @@ const formFields = computed(() => [ placeholder: "Select Customer or Business", cols: 12, md: 6, - options: ["Customer", "Business"] + options: ["Customer", "Business"], }, { name: "partyName", @@ -135,7 +135,6 @@ const formFields = computed(() => [ }, ]); - // Show status message to user function showStatusMessage(message, type = "info") { statusMessage.value = message; @@ -206,7 +205,10 @@ async function handleSubmit(formDataFromEvent) { } } catch (error) { console.error("CreateEstimateModal: Error creating client:", error); - showStatusMessage(error.message || "Failed to create estimate. Please try again.", "error"); + showStatusMessage( + error.message || "Failed to create estimate. Please try again.", + "error", + ); } finally { isSubmitting.value = false; // Also reset the Form component's internal submission state