mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
ef6fdb29d5
This allows us to combine the methods offered by the component stream with a dialog. E.g. it's possible to render a dialog, while at the same time updating a component on the page using the same response. Since there can/should only be one dialog opened usually, I decided to keep the respond_with_dialog as the only way to generate a dialog this way, because it enforces that there can only be one dialog per response. Alternatively we could have added a dialog-specific method to ComponentStream, theoretically allowing multiple dialogs per response. A consequence of this change is that using OpTurbo::DialogStreamHelper now also requires OpTurbo::ComponentStream, though usually both were used at the same time anyways.