Sha256: 61f3cb298aead119a2c4d2f4f6e4c9e5fbdc00c2cd9b9c6e8611c97fe421342d

Contents?: true

Size: 437 Bytes

Versions: 6

Compression:

Stored size: 437 Bytes

Contents

<% if name.present? %><turbo-frame id="<%= name %>"><% end %>
  <%
    # When rendering the frames the flashed content gets lost.
    # By including the alerts partial, the stimulus will pick them up and display them to the user.
  %>
  <% if helpers.turbo_frame_request? %>
    <%= render Avo::AlertsComponent.new if helpers.flash.present? && name.present? %>
  <% end %>

  <%= content %>
<% if name.present? %></turbo-frame><% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
avo-1.25.2 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-1.25.1 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-1.25.0 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-1.24.2 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-1.24.1 app/components/avo/turbo_frame_wrapper_component.html.erb
avo-1.24.0 app/components/avo/turbo_frame_wrapper_component.html.erb