diff --git a/src/locales/en.json b/src/locales/en.json
index 4f38fd9..f24becd 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -2,6 +2,7 @@
"A store repesents a company or a unique catalog of products. If your OMS is connected to multiple eCommerce stores sellling different collections of products, you may have multiple Product Stores set up in HotWax Commerce.": "A store repesents a company or a unique catalog of products. If your OMS is connected to multiple eCommerce stores sellling different collections of products, you may have multiple Product Stores set up in HotWax Commerce.",
"Actions": "Actions",
"Active": "Active",
+ "Add": "Add",
"Add inventory rule": "Add inventory rule",
"Allocated Items": "Allocated Items",
"Allow partial allocation": "Allow partial allocation",
diff --git a/src/views/BrokeringRoute.vue b/src/views/BrokeringRoute.vue
index 4492436..d547135 100644
--- a/src/views/BrokeringRoute.vue
+++ b/src/views/BrokeringRoute.vue
@@ -63,7 +63,7 @@
{{ translate("Description") }}
- {{ translate(isDescUpdating ? "Save" : "Edit") }}
+ {{ translate(isDescUpdating ? "Save" : description ? "Edit" : "Add") }}
@@ -444,8 +444,9 @@ function getArchivedOrderRoutings() {
}
async function updateGroupDescription() {
- // Do not update description, if the desc is unchanged, and we do not have routingGroupId, and description is left empty
- if(props.routingGroupId && currentRoutingGroup.value.description !== description.value) {
+ // Do not update description, if the desc is unchanged, and we do not have routingGroupId
+ // Added conversion using `!!`, as if the group does not have a description then we get `undefined` and if the description entered by the user is left empty then `undefined != ''` is true and thus it makes an api call, even when description is unchanged in this case.
+ if(props.routingGroupId && (!!currentRoutingGroup.value.description != !!description.value)) {
const routingGroupId = await updateRoutingGroup({ routingGroupId: props.routingGroupId, productStoreId: currentRoutingGroup.value.productStoreId, description: description.value })
if(routingGroupId) {
await store.dispatch("orderRouting/setCurrentGroup", { ...currentRoutingGroup.value, description: description.value })
diff --git a/src/views/BrokeringRuns.vue b/src/views/BrokeringRuns.vue
index 6d5c8a9..241f757 100644
--- a/src/views/BrokeringRuns.vue
+++ b/src/views/BrokeringRuns.vue
@@ -20,13 +20,13 @@
@@ -44,7 +44,7 @@
{{ group.groupName }}
-
+
{{ group.description }}