avo 2.30.1.pre2.pr1683 → 2.30.1.pre3.pr1683

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb9bb94729b7e065e13af29ac65735d3234c26b1239dd649e6de5dada23b15aa
4
- data.tar.gz: 71d338dab4be874a0d7acd450c64e420be9de5e124ca57d727591af3a9828cdd
3
+ metadata.gz: 7c187f50748a67fd5efd131b79d1f9a3aac50e9fde37691e26e7a6af264001fe
4
+ data.tar.gz: a1d21de053b77d80ed0ba618a043b94be172cf1ff47690f8a2a52d8fbed67e3e
5
5
  SHA512:
6
- metadata.gz: b5fb2e3b4527c5181650f3c1cb73ef4e8808f9cc42e71b24dbaee687b768f1d5c8ed44be7514e13d5ba4c79408528abcb02eea5ec5cf07c4ffc7ee23bc30bfcb
7
- data.tar.gz: f349827d0b287eeefd1296dba288abbf0226ae86d61e864562d10a07b74d225488c3f53a8190897b30b7e68acb54c521520e386a0737bb7175bb5624ea3fb8b4
6
+ metadata.gz: b68517f8dd8ea1865e07c68f8e890302ccfea22c752bd70fde7c1b16e9673d53acfcbc58c7bdeb8edf098177a404ba151b3fc3e2c6bdfaf304a5b0f92a391100
7
+ data.tar.gz: d6e7c905a8b25d2cbc6e81edc68382db0613ca680985e8d3a478ac233e3eb67b993ed7575a6ab2393ffa41f66ab37b5ea80f351eb68a7395a84e08716db8ef15
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.30.1.pre2.pr1683)
4
+ avo (2.30.1.pre3.pr1683)
5
5
  actionview (>= 6.0)
6
6
  active_link_to
7
7
  activerecord (>= 6.0)
@@ -1,6 +1,6 @@
1
1
  <%= content_tag :div, class: wrapper_classes do %>
2
2
  <%= turbo_frame_tag @field.id do %>
3
- <% unless @field.hide_view_type_changer %>
3
+ <% unless @field.hide_view_type_switcher %>
4
4
  <div class="justify-self-end flex justify-end items-center space-x-3">
5
5
  <%= render partial: 'avo/partials/view_toggle_button', locals: { available_view_types: available_view_types, view_type: @field.view_type, turbo_frame: @field.id } %>
6
6
  </div>
@@ -23,7 +23,7 @@ class Avo::Fields::Common::Files::ListViewerComponent < ViewComponent::Base
23
23
  end
24
24
 
25
25
  def wrapper_classes
26
- field.stacked ? "-mt-9" : ""
26
+ (field.stacked && !field.hide_view_type_switcher) ? "-mt-9" : ""
27
27
  end
28
28
 
29
29
  def available_view_types
@@ -6,7 +6,7 @@ module Avo
6
6
  attr_accessor :direct_upload
7
7
  attr_accessor :accept
8
8
  attr_reader :display_filename
9
- attr_reader :hide_view_type_changer
9
+ attr_reader :hide_view_type_switcher
10
10
 
11
11
  def initialize(id, **args, &block)
12
12
  super(id, **args, &block)
@@ -17,7 +17,7 @@ module Avo
17
17
  @accept = args[:accept].present? ? args[:accept] : nil
18
18
  @display_filename = args[:display_filename].nil? ? true : args[:display_filename]
19
19
  @view_type = args[:view_type] || :grid
20
- @hide_view_type_changer = args[:hide_view_type_changer]
20
+ @hide_view_type_switcher = args[:hide_view_type_switcher]
21
21
  end
22
22
 
23
23
  def view_component_name
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.30.1.pre2.pr1683" unless const_defined?(:VERSION)
2
+ VERSION = "2.30.1.pre3.pr1683" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.30.1.pre2.pr1683
4
+ version: 2.30.1.pre3.pr1683
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin