Skip to content

Commit

Permalink
Improved: updated the toast message & added toast message on api fail(h…
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Jan 17, 2025
1 parent 8202901 commit 65a1fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@
"Total variance": "Total variance",
"total variance": "total variance",
"UNMATCHED": "UNMATCHED",
"Unable to complete the count as some items are still pending review. Please review the updated item list and try again": "Unable to complete the count as some items are still pending review. Please review the updated item list and try again",
"Update": "Update",
"Update count": "Update count",
"Upload count": "Upload count",
Expand Down
3 changes: 2 additions & 1 deletion src/views/PendingReviewDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ async function completeCount() {
if(!hasError(resp) && resp.data?.count > 0) {
await fetchCountItems();
showToast(translate("Cannot complete count as some items are still in created state. Please review the refreshed item list and try again."))
showToast(translate("Unable to complete the count as some items are still pending review. Please review the updated item list and try again"))
return;
}
Expand All @@ -507,6 +507,7 @@ async function completeCount() {
showToast(translate("Failed to complete cycle count"))
}
} catch(err) {
showToast(translate("Failed to complete cycle count"))
logger.error(err)
}
}
Expand Down

0 comments on commit 65a1fca

Please sign in to comment.