From dea1c424ed89fc05cfc41b41e6ea53046e4d038d Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 5 Nov 2024 17:05:20 +0530 Subject: [PATCH] Improved: toast message for setting updation in case of no product store found (#412) --- src/locales/en.json | 4 ++-- src/store/modules/util/actions.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 27528387..59527b3c 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -138,8 +138,8 @@ "Timezone": "Timezone", "Time zone updated successfully": "Time zone updated successfully", "To close the purchase order, select all.": "To close the purchase order, select all.", - "Unable to update barcode identification preference since no product store config.": "Unable to update barcode identification preference since no product store config.", - "Unable to update force scan preference since no product store config.": "Unable to update force scan preference since no product store config.", + "Unable to update barcode identification preference since no product store config found.": "Unable to update barcode identification preference since no product store config found.", + "Unable to update force scan preference since no product store config found.": "Unable to update force scan preference since no product store config found.", "Unable to update product identifier preference": "Unable to update product identifier preference", "Username": "Username", "Version: ": "Version: {appVersion}", diff --git a/src/store/modules/util/actions.ts b/src/store/modules/util/actions.ts index b9e5756c..95903548 100644 --- a/src/store/modules/util/actions.ts +++ b/src/store/modules/util/actions.ts @@ -117,7 +117,7 @@ const actions: ActionTree = { // when selecting none as ecom store, not updating the pref as it's not possible to save pref with empty productStoreId if(!eComStoreId) { - showToast(translate("Unable to update force scan preference since no product store config.")) + showToast(translate("Unable to update force scan preference since no product store config found.")) commit(types.UTIL_FORCE_SCAN_STATUS_UPDATED, prefValue) return; } @@ -238,7 +238,7 @@ const actions: ActionTree = { // when selecting none as ecom store, not updating the pref as it's not possible to save pref with empty productStoreId if(!eComStoreId) { - showToast(translate("Unable to update barcode identification preference since no product store config.")) + showToast(translate("Unable to update barcode identification preference since no product store config found.")) commit(types.UTIL_BARCODE_IDENTIFICATION_PREF_UPDATED, prefValue) return; }