Files
openproject/app/controllers/projects
Jan Sandbrink ef6fdb29d5 Base respond_with_dialog on OpTurbo::ComponentStream
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.
2025-06-19 15:38:55 +02:00
..