app/components/avo/index/resource_grid_component.html.erb in avo-2.14.3.pre.7.polytranslations1 vs app/components/avo/index/resource_grid_component.html.erb in avo-2.15.0
- old
+ new
@@ -1,6 +1,7 @@
<% if @resources.present?%>
- <div class="w-full grid grid-cols-1 xs:grid-cols-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 gap-6 mt-8">
+ <div class="w-full grid grid-cols-1 xs:grid-cols-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 gap-6 mt-8"
+ data-selected-resources-name="<%= @resource.model_key %>" data-selected-resources="[]">
<% @resources.each_with_index do |resource, index| %>
<% cache_if Avo.configuration.cache_resources_on_index_view, resource.cache_hash(@parent_model) do %>
<%= render(Avo::Index::GridItemComponent.new(resource: resource, reflection: @reflection, parent_model: @parent_model)) %>
<% end %>
<% end %>