mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #12247 from dacook/buu/broadcast-queue-12020
[BUU] Enqueue actions to perform at end of reflex
This commit is contained in:
@@ -116,11 +116,11 @@ class ProductsReflex < ApplicationReflex
|
||||
producer_options: producers, producer_id: @producer_id,
|
||||
category_options: categories, category_id: @category_id,
|
||||
flashes: flash })
|
||||
).broadcast
|
||||
)
|
||||
|
||||
cable_ready.replace_state(
|
||||
url: current_url,
|
||||
).broadcast_later
|
||||
)
|
||||
|
||||
morph :nothing
|
||||
end
|
||||
@@ -133,12 +133,11 @@ class ProductsReflex < ApplicationReflex
|
||||
cable_ready.replace(
|
||||
selector: "#products-form",
|
||||
html: render(partial: "admin/products_v3/table", locals:)
|
||||
).broadcast
|
||||
)
|
||||
morph :nothing
|
||||
|
||||
# dunno why this doesn't work.
|
||||
# morph "#products-form", render(partial: "admin/products_v3/table",
|
||||
# locals: { products: products })
|
||||
# dunno why this doesn't work. The HTML stops after the first `<col>` element, wtf?!
|
||||
# morph "#products-form", render(partial: "admin/products_v3/table", locals:)
|
||||
end
|
||||
|
||||
def producers
|
||||
|
||||
Reference in New Issue
Block a user