-
Notifications
You must be signed in to change notification settings - Fork 27
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
fix: search not working on PO review page(#85zrmf7ed) #182
Conversation
src/views/PurchaseOrderReview.vue
Outdated
@@ -18,7 +18,7 @@ | |||
<ion-content :fullscreen="true"> | |||
<div class="header"> | |||
<div class="search"> | |||
<ion-searchbar :placeholder="$t('Search products')" v-model="queryString" v-on:keyup.enter="queryString = $event.target.value; searchProduct(queryString)" /> | |||
<ion-searchbar :placeholder="$t('Search products')" v-on:keyup.enter="queryString = $event.target.value; searchProduct(queryString)" /> |
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 can use shorthand for v-on.
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
src/views/PurchaseOrderReview.vue
Outdated
<div v-for="(po, poId) in purchaseOrders.parsed" :key="poId" > | ||
<PurchaseOrderDetail v-if="segmentSelected === poId" :itemsByPoId="{[poId]: po}" :purchaseOrders="purchaseOrders" /> | ||
|
||
<div class="empty-state" v-else-if="queryString"> |
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.
Are there any specific reasons for using the 'empty-state' class instead of Ionic's CSS utility class for center alignment?
Related Issues
Closes #180
Short Description and Why It's Useful
Screenshots of Visual Changes before/after (If There Are Any)
IMPORTANT NOTICE - Remember to add changelog entry
Contribution and Currently Important Rules Acceptance