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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c187f50748a67fd5efd131b79d1f9a3aac50e9fde37691e26e7a6af264001fe
|
4
|
+
data.tar.gz: a1d21de053b77d80ed0ba618a043b94be172cf1ff47690f8a2a52d8fbed67e3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b68517f8dd8ea1865e07c68f8e890302ccfea22c752bd70fde7c1b16e9673d53acfcbc58c7bdeb8edf098177a404ba151b3fc3e2c6bdfaf304a5b0f92a391100
|
7
|
+
data.tar.gz: d6e7c905a8b25d2cbc6e81edc68382db0613ca680985e8d3a478ac233e3eb67b993ed7575a6ab2393ffa41f66ab37b5ea80f351eb68a7395a84e08716db8ef15
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= content_tag :div, class: wrapper_classes do %>
|
2
2
|
<%= turbo_frame_tag @field.id do %>
|
3
|
-
<% unless @field.
|
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>
|
@@ -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 :
|
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
|
-
@
|
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