-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Expose js function: Spree.SortableTable.refresh #3754
Expose js function: Spree.SortableTable.refresh #3754
Conversation
@brunoao86 I think this is a useful improvement, thanks for working on it! I am not 100% sure about the proposed interface |
Thanks for the review, @spaghetticode! It makes total sense, I will work on that! |
from Spree.refresh_sortable_tables to Spree.SortableTable.refresh Reference: solidusio#3754 (comment)
Hey @spaghetticode! ✌️ When you have some free time, can you please review this PR again? Thanks again! 🙏 |
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.
Looks good, can you please squash the commits into a single one? thanks
@brunoao86 sorry, I just realized the changes are scattered in 3 commits. Can you squash them into a single one, with a good commit message? thanks 🙏 |
The sortable table component is only loaded once when page is loaded. So it will be very useful to be called after asynchronous requests. Motivation: To allow sorting products inside a product assembly (Product Parts) solidusio-contrib/solidus_product_assembly#92
98b70a8
to
d46d1bc
Compare
Hey @spaghetticode It is done! ✔️ Is there a way to do the squash without the Thanks! 🙏 |
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.
@brunoao86 push -f
is ok 👍
Again, thanks for this contribution 🎉
Thanks @brunoao86! |
Description
The sortable table component is only loaded once when page is loaded.
So it will be very useful to be called after asynchronous requests.
The behaviour stays the same, but now we'll have a function available to refresh the sortable table component if needed by calling
Spree.SortableTable.refresh()
in the javascript.Motivation
I'm adding sortable table component on Product / Parts and this exposing was needed.
solidusio-contrib/solidus_product_assembly#92
Checklist: