Sha256: 425711f1ba9447d37e8d1ade91cbcb510b5d99d8d4efaa97007f63ae95cedfae

Contents?: true

Size: 437 Bytes

Versions: 12

Compression:

Stored size: 437 Bytes

Contents

<% if name.present? %><turbo-frame id="<%= name %>"><% end %>
<%
  # When rendering the frames the flashed content gets lost.
  # We're appending it back if it's a turbo_frame_request.
%>
<% if helpers.turbo_frame_request? %>
  <%= helpers.turbo_stream_action_tag :append, target: "alerts", template: render(Avo::FlashAlertsComponent.new(flashes: helpers.flash)) %>
<% end %>
<%= content %>
<% if name.present? %></turbo-frame><% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
avo-3.11.7 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.11.6 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.11.5 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.11.4 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.11.3 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.11.2 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.11.1 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.11.0 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.10.10 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.10.9 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.10.8 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-3.10.7 app/components/avo/turbo_frame_wrapper_component.html.erb