diff --git a/frontend/src/components/pages/Estimate.vue b/frontend/src/components/pages/Estimate.vue index 49112d9..afc2f7f 100644 --- a/frontend/src/components/pages/Estimate.vue +++ b/frontend/src/components/pages/Estimate.vue @@ -315,7 +315,7 @@ const confirmSubmit = async () => { items: selectedItems.value.map((i) => ({ itemCode: i.itemCode, qty: i.qty })), }; await Api.createEstimate(data); - notificationStore.addNotification("Estimate created successfully", "success"); + notificationStore.addSuccess("Estimate created successfully", "success"); router.push(`/estimate?address=${encodeURIComponent(formData.address)}`); // Reset form formData.address = ""; @@ -326,7 +326,7 @@ const confirmSubmit = async () => { selectedItems.value = []; } catch (error) { console.error("Error creating estimate:", error); - notificationStore.addNotification("Failed to create estimate", "error"); + notificationStore.addError("Failed to create estimate", "error"); } finally { isSubmitting.value = false; }