-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
Using the spree_starter project with Spree 5.1.5.
Expected Behavior
When clicking the Notify me when available button for a product that's out of stock, there should be a modal window or a notification about the result of this action.
Actual Behavior
When clicking the Notify me when available button, nothing happens. There is also no network requests seen in the dev console or error messages in the JS dev console.
Other observation
It seems the modal code is not rendered due to
spree/storefront/app/views/themes/default/spree/page_sections/_product_details.html.erb
Line 75 in a98b43e
| <% show_waitlist_modal = spree.respond_to?(:waitlists_path) && current_variant.present? %> |
(I might add that it makes no sense to render the button itself if the modal is not rendered as well, since the button then does nothing)
However in spree and in spree_starter, the only thing related to waitlists_path I can find is one turbo view:
https://github.com/spree/spree/blob/main/storefront/app/views/spree/waitlists/create.turbo_stream.erb
I assume there is some code missing here?