fix: update toast messages for document update success and error handling

This commit is contained in:
Shariq Ansari 2025-05-09 17:53:28 +05:30
parent 6f49573f2f
commit c67ec08e1a

View File

@ -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',