Skip to content

Commit

Permalink
fix(PWA): Fix translated toast message
Browse files Browse the repository at this point in the history
  • Loading branch information
cogk committed Oct 17, 2024
1 parent 1ba80e4 commit 278a003
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/components/FormView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ const docList = createListResource({
async onSuccess(data) {
toast({
title: __("Success"),
text: __([__(props.doctype)], '{0} created successfully!'),
text: __("{0} created successfully!", [__(props.doctype)]),
icon: "check-circle",
position: "bottom-center",
iconClasses: "text-green-500",
Expand All @@ -526,7 +526,7 @@ const docList = createListResource({
onError() {
toast({
title: __("Error"),
text: __('Error creating {0}', [__(props.doctype)]),
text: __("Error creating {0}", [__(props.doctype)]),
icon: "alert-circle",
position: "bottom-center",
iconClasses: "text-red-500",
Expand All @@ -544,7 +544,7 @@ const documentResource = createDocumentResource({
onSuccess() {
toast({
title: __("Success"),
text: __([__(props.doctype)], '{0} updated successfully!'),
text: __("{0} updated successfully!", [__(props.doctype)]),
icon: "check-circle",
position: "bottom-center",
iconClasses: "text-green-500",
Expand All @@ -553,7 +553,7 @@ const documentResource = createDocumentResource({
onError() {
toast({
title: __("Error"),
text: __('Error updating {0}', [__(props.doctype)]),
text: __("Error updating {0}", [__(props.doctype)]),
icon: "alert-circle",
position: "bottom-center",
iconClasses: "text-red-500",
Expand All @@ -566,7 +566,7 @@ const documentResource = createDocumentResource({
router.back()
toast({
title: __("Success"),
text: __([__(props.doctype)], '{0} deleted successfully!'),
text: __("{0} deleted successfully!", [__(props.doctype)]),
icon: "check-circle",
position: "bottom-center",
iconClasses: "text-green-500",
Expand All @@ -575,7 +575,7 @@ const documentResource = createDocumentResource({
onError() {
toast({
title: __("Error"),
text: __('Error deleting {0}', [__(props.doctype)]),
text: __("Error deleting {0}", [__(props.doctype)]),
icon: "alert-circle",
position: "bottom-center",
iconClasses: "text-red-500",
Expand Down

0 comments on commit 278a003

Please sign in to comment.