From cd89156ca0f785ebd580a7229ddc7af6c1241e18 Mon Sep 17 00:00:00 2001 From: rocketdebris Date: Mon, 1 Dec 2025 14:30:47 -0500 Subject: [PATCH] Updated estimate creation notifications to use the error and success notifications correctly. --- frontend/src/components/pages/Estimate.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }