From bf12b0f2df2c8f3236704784c32000ce855ace4b Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Fri, 26 Jul 2024 18:45:55 +0530 Subject: [PATCH] Improved: message to be displayed after performing an operation on the order Changed the message to more informative when user either changes the shipping address or change pickup location. This updated message will only be displayed untill user does not refreshes the page, once refreshed the message will be changed to the default 'not-eligible order' message. --- src/i18n/locales/en.json | 1 + src/views/Order.vue | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 0a67920b..986b8fed 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -1,5 +1,6 @@ { "Add address": "Add address", + "An email will be sent to you when your item(s) are ready to collect at the new requested location(s).": "An email will be sent to you when your item(s) are ready to collect at the new requested location(s).", "Are you sure you want to save the changes?": "Are you sure you want to save the changes?", "Are you sure you want to cancel the order items?": "Are you sure you want to cancel the order items?", "Cancel": "Cancel", diff --git a/src/views/Order.vue b/src/views/Order.vue index 1834ef36..498d80f0 100644 --- a/src/views/Order.vue +++ b/src/views/Order.vue @@ -77,6 +77,9 @@ {{ $t("Cancel") }} +
+ {{ $t("An email will be sent to you when your item(s) are ready to collect at the new requested location(s).") }} +
{{ $t("Order item not eligible for reroute fulfilment") }}
@@ -150,7 +153,8 @@ export default defineComponent({ name: 'Shipping', value: 'STANDARD' } - ] + ], + isOrderUpdated: false } }, computed: { @@ -286,6 +290,7 @@ export default defineComponent({ shipGroup.shipTo.postalAddress = shipGroup.updatedAddress shipGroup.updatedAddress = null showToast(translate("Changes saved")) + this.isOrderUpdated = true } else { showToast(translate("Failed to update the shipping addess")) } @@ -313,6 +318,7 @@ export default defineComponent({ if (resp.status === 200 && !hasError(resp)) { shipGroup.facilityId = shipGroup.selectedFacility.facilityId showToast(translate("Changes saved")) + this.isOrderUpdated = true } else { showToast(translate("Failed to update the pickup store")) }