From 1e1c171ecfcbe6a93fdf78c9f06742078eb4a1a1 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Wed, 14 Feb 2024 18:48:45 +0530 Subject: [PATCH] Fixed: logic to select multiple values for order filters(#84) --- src/locales/en.json | 1 + src/views/BrokeringQuery.vue | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 108014a..5980a8c 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -137,6 +137,7 @@ "sales channel": "sales channel", "select days": "select days", "select range": "select range", + "selected": "selected", "shipping method": "shipping method", "The timezone you select is used to ensure automations you schedule are always accurate to the time you select.": "The timezone you select is used to ensure automations you schedule are always accurate to the time you select.", "Timezone": "Timezone", diff --git a/src/views/BrokeringQuery.vue b/src/views/BrokeringQuery.vue index 46efe79..614211b 100644 --- a/src/views/BrokeringQuery.vue +++ b/src/views/BrokeringQuery.vue @@ -645,9 +645,9 @@ function getSelectedValue(options: any, enums: any, parameter: string) { // If having more than 1 value selected then displaying the count of selected value otherwise returning the facilityName of the selected facility if(value?.length > 1) { - return `${value.length} selected` + return `${value.length} ${translate("selected")}` } else { - return facilities.value[value[0]].facilityName || value[0] + return parameter === "SHIPPING_METHOD" ? shippingMethods.value[value[0]].description || value[0] : facilities.value[value[0]].facilityName || value[0] } }