Skip to content

Commit

Permalink
Improved: the value to display order name in place of orderId(#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Jul 12, 2023
1 parent 89ca0b4 commit b1e9d7f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"Configuration Missing": "Configuration Missing",
"Confirm": "Confirm",
"Copied": "Copied { value }",
"Copied to clipboard": "Copied to clipboard",
"Custom Label": "Custom Label",
"Customer letter": "Customer letter",
"Damaged": "Damaged",
Expand Down Expand Up @@ -51,7 +52,6 @@
"Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.": "Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.",
"Import shipped orders": "Import shipped orders",
"In Progress": "In Progress",
"Internal Id copied to clipboard": "Internal Id copied to clipboard",
"Last brokered": "Last brokered",
"Loading": "Loading",
"Login": "Login",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"Configuration Missing": "Configuration Missing",
"Confirm": "Confirm",
"Copied": "Copied { value }",
"Copied to clipboard": "Copied to clipboard",
"Custom Label": "Custom Label",
"Customer letter": "Customer letter",
"Damaged": "Damaged",
Expand Down Expand Up @@ -51,7 +52,6 @@
"Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.": "Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.",
"Import shipped orders": "Import shipped orders",
"In Progress": "En curso",
"Internal Id copied to clipboard": "Internal Id copied to clipboard",
"Last brokered": "Última intermediación",
"Loading": "Loading",
"Login": "Acceso",
Expand Down
2 changes: 2 additions & 0 deletions src/store/modules/order/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ const actions: ActionTree<OrderState, RootState> = {
customerName: orderItem.customerName,
orderId: orderItem.orderId,
orderDate: orderItem.orderDate,
orderName: orderItem.orderName,
groupValue: order.groupValue,
picklistBinId: orderItem.picklistBinId,
items: order.doclist.docs,
Expand Down Expand Up @@ -399,6 +400,7 @@ const actions: ActionTree<OrderState, RootState> = {
customerName: orderItem.customerName,
orderId: orderItem.orderId,
orderDate: orderItem.orderDate,
orderName: orderItem.orderName,
reservedDatetime: orderItem.reservedDatetime,
groupValue: order.groupValue,
picklistBinId: orderItem.picklistBinId,
Expand Down
4 changes: 2 additions & 2 deletions src/views/Completed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
</div>

<div class="order-tags">
<ion-chip @click="copyToClipboard(order.orderId, 'Internal Id copied to clipboard')" outline>
<ion-chip @click="copyToClipboard(order.orderName, 'Copied to clipboard')" outline>
<ion-icon :icon="pricetagOutline" />
<ion-label>{{ order.orderId }}</ion-label>
<ion-label>{{ order.orderName }}</ion-label>
</ion-chip>
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/views/InProgress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
</div>

<div class="order-tags">
<ion-chip @click="copyToClipboard(order.orderId, 'Internal Id copied to clipboard')" outline>
<ion-chip @click="copyToClipboard(order.orderName, 'Copied to clipboard')" outline>
<ion-icon :icon="pricetagOutline" />
<ion-label>{{ order.orderId }}</ion-label>
<ion-label>{{ order.orderName }}</ion-label>
</ion-chip>
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/views/OpenOrders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
</div>

<div class="order-tags">
<ion-chip @click="copyToClipboard(orders.doclist.docs[0].orderId, 'Internal Id copied to clipboard')" outline>
<ion-chip @click="copyToClipboard(orders.doclist.docs[0].orderName, 'Copied to clipboard')" outline>
<ion-icon :icon="pricetagOutline" />
<ion-label>{{ orders.doclist.docs[0].orderId }}</ion-label>
<ion-label>{{ orders.doclist.docs[0].orderName }}</ion-label>
</ion-chip>
<ion-button fill="clear" class="mobile-only" color="danger">
<ion-icon slot="icon-only" :icon="refreshCircleOutline" />
Expand Down

0 comments on commit b1e9d7f

Please sign in to comment.