Class: Plutonium::Interaction::Async::RunDefinition::ShowPage
- Inherits:
-
ShowPage
- Object
- ShowPage
- Plutonium::Interaction::Async::RunDefinition::ShowPage
- Defined in:
- lib/plutonium/interaction/async/run_definition.rb
Instance Method Summary collapse
-
#view_template ⇒ Object
Answers the progress frame's poll with the panel ALONE.
Instance Method Details
#view_template ⇒ Object
Answers the progress frame's poll with the panel ALONE.
Turbo sends Turbo-Frame: <id> when the frame re-fetches its src, and
DynaFrameContent wraps every response in a frame of that name. Falling
through to the normal page would therefore return the whole show page
wrapped in a frame carrying the progress frame's id — with the panel's
own frame nested inside it, under the same id. Turbo would swap the
outer one in, and the next poll would nest again.
66 67 68 69 70 71 72 |
# File 'lib/plutonium/interaction/async/run_definition.rb', line 66 def view_template(&) return super unless progress_poll? DynaFrameContent do render Plutonium::UI::Interaction::Async::RunProgress.new(resource_record!) end end |