app/components/coco/base/modal/modal.html.erb in coveragebook_components-0.8.8 vs app/components/coco/base/modal/modal.html.erb in coveragebook_components-0.8.9

- old
+ new

@@ -20,7 +20,17 @@ </div> <% end %> <%= render_flash_messages %> <% end %> <% else %> - <%= content %> + <div data-role="inline-modal-content"> + <% if container_type == :dialog %> + <%= render Coco::ModalDialog.new(title: title.to_s, dismissable: false) do %> + <%= content %> + <% end %> + <% else %> + <%= coco_panel do %> + <%= content %> + <% end %> + <% end %> + </div> <% end %>