-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented: show order cards horizontally based on order ship group/part (#85zrv9fhc) #225
Conversation
… group (#85zrv9fhc)
… for order parts (#85zrv9fhc)
…ter cursor for open order cards (#85zrv9fhc)
src/views/Orders.vue
Outdated
@@ -22,8 +22,8 @@ | |||
</ion-header> | |||
<ion-content> | |||
<div v-if="segmentSelected === 'open'"> | |||
<div v-for="order in orders" :key="order.orderId" v-show="order.parts.length > 0"> | |||
<ion-card v-for="(part, index) in order.parts" :key="index" @click.prevent="viewOrder(order, part)"> | |||
<div v-for="order in openOrdersByPart" :key="order.orderId" v-show="order.parts.length > 0"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
orderId might not be unique now
<div v-for="order in openOrdersByPart" :key="order.orderId" v-show="order.parts.length > 0"> | |
<div v-for="order in openOrdersByPart" :key="index" v-show="order.parts.length > 0"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improved sir
src/views/Orders.vue
Outdated
</ion-button> | ||
</div> | ||
</ion-card> | ||
</div> | ||
</div> | ||
<div v-if="segmentSelected === 'packed'"> | ||
<div v-for="order in packedOrders" :key="order.orderId" v-show="order.parts.length > 0"> | ||
<ion-card v-for="(part, index) in order.parts" :key="index"> | ||
<div v-for="order in packedOrdersByPart" :key="order.orderId" v-show="order.parts.length > 0"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could directly call getOrdersByPart() here and pass orders
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated sir
Related Issues
Closes #222
Short Description and Why It's Useful
Implemented rendering of packed orders based on ship group (order parts) in the UI.
This fixed the issue of duplicate cards showing up vertically in the UI for orders having different ship groups.
Screenshots of Visual Changes before/after (If There Are Any)
Before -
After -
Contribution and Currently Important Rules Acceptance