Skip to content
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

Merged
merged 7 commits into from
Feb 22, 2023

Conversation

disha1202
Copy link
Contributor

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

@@ -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)" />
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

<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">
Copy link
Contributor

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?

@adityasharma7 adityasharma7 merged commit 8e89060 into hotwax:main Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search for Shopify ID on PO review page not working
3 participants