Skip to content

Commit

Permalink
Merge pull request #363 from Dhiraj1405/toastMessageChange
Browse files Browse the repository at this point in the history
Toast message change
  • Loading branch information
ymaheshwari1 authored Mar 21, 2024
2 parents 64974bc + c0626cd commit d53dcca
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"Location": "Location",
"Failed to receive shipment": "Failed to receive shipment",
"Failed to receive some of the items": "Failed to receive some of the items",
"Failed to scan:": "Failed to scan: {itemName}",
"Failed to update product identifier preference": "Failed to update product identifier preference",
"facility location": "facility location",
"Facility locations were not found corresponding to destination facility of return shipment. Please add facility locations to avoid receive return shipment failure.": "Facility locations were not found corresponding to destination facility of return shipment. Please add facility locations to avoid receive return shipment failure.",
Expand Down Expand Up @@ -89,6 +88,7 @@
"Scan ASN to start receiving": "Scan ASN to start receiving",
"Scan barcodes to receive them": "Scan barcodes to receive them",
"Scan items": "Scan items",
"Scanned item is not present within the shipment:": "Scanned item is not present within the shipment: {itemName}",
"Scanned successfully.": "Scanned {itemName} successfully.",
"secondary identifier": "secondary identifier",
"Search": "Search",
Expand Down Expand Up @@ -127,4 +127,4 @@
"Version: ": "Version: {appVersion}",
"You do not have permission to access this page": "You do not have permission to access this page",
"ZeroQuantity": "ZeroQuantity"
}
}
2 changes: 1 addition & 1 deletion src/store/modules/order/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const actions: ActionTree<OrderState, RootState> = {
commit(types.ORDER_CURRENT_UPDATED, state.current )
showToast(translate("Scanned successfully.", { itemName: payload }))
} else {
showToast(translate("Failed to scan:", { itemName: payload }))
showToast(translate("Scanned item is not present within the shipment:", { itemName: payload }))
}
},
async addOrderItem ({ commit }, payload) {
Expand Down
4 changes: 2 additions & 2 deletions src/store/modules/return/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const actions: ActionTree<ReturnState, RootState> = {
commit(types.RETURN_CURRENT_UPDATED, state);
showToast(translate("Scanned successfully.", { itemName: payload }))
} else {
showToast(translate("Failed to scan:", { itemName: payload }))
showToast(translate("Scanned item is not present within the shipment:", { itemName: payload }))
}
},
async setCurrent ({ commit, state }, payload) {
Expand Down Expand Up @@ -199,4 +199,4 @@ const actions: ActionTree<ReturnState, RootState> = {
}
}

export default actions;
export default actions;
2 changes: 1 addition & 1 deletion src/store/modules/shipment/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const actions: ActionTree<ShipmentState, RootState> = {
commit(types.SHIPMENT_CURRENT_UPDATED, state);
showToast(translate("Scanned successfully.", { itemName: payload }))
} else {
showToast(translate("Failed to scan:", { itemName: payload }))
showToast(translate("Scanned item is not present within the shipment:", { itemName: payload }))
}
},
async setCurrent ({ commit }, payload) {
Expand Down

0 comments on commit d53dcca

Please sign in to comment.