From c67ec08e1ae270027485c79f3e988e61034539b4 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 9 May 2025 17:53:28 +0530 Subject: [PATCH] fix: update toast messages for document update success and error handling --- frontend/src/data/document.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/data/document.js b/frontend/src/data/document.js index 26fc888b..7de0bced 100644 --- a/frontend/src/data/document.js +++ b/frontend/src/data/document.js @@ -18,14 +18,14 @@ export function useDocument(doctype, docname) { setValue: { onSuccess: () => { createToast({ - title: 'Data Updated', + title: __('Document updated successfully'), icon: 'check', iconClasses: 'text-ink-green-3', }) }, onError: (err) => { createToast({ - title: 'Error', + title: __('Error updating document'), text: err.messages[0], icon: 'x', iconClasses: 'text-red-600',