avo 2.14.3.pre.6.nosprockets → 2.14.3.pre.7.polytranslations1
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: '08e8a7a0b1ecf1e365341c775e703357f735d907284d362bf3f35c09639e2a2d'
|
4
|
+
data.tar.gz: 67f15cd7898525ea94de74f7957efdffa259c7d4fc5c0d3275d58184b9c5c4ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e12474cfb3fbc1a2e0bdda53510ad05983f0712f8b1ed45f9bd1755edb632baae5d2b160aaf38e591a4d32dacf7668af9060eeccb5df4417f86b37c667f13ae
|
7
|
+
data.tar.gz: 1175c1f975c4426dff88a75e388d18d6b4e509c8a78556b4a5fe492dc87317a5f3ffd0d2b043304b077d09e7c1a02f0c9b07cd27b7aa3d197f8b775a8b1cc749
|
data/Gemfile.lock
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
data-association-class="<%= @field&.target_resource&.model_class || nil %>"
|
14
14
|
>
|
15
15
|
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, help: @field.polymorphic_help || '' do %>
|
16
|
-
<%= @form.select @field.type_input_foreign_key, @field.types.map { |type| [type.to_s.
|
16
|
+
<%= @form.select @field.type_input_foreign_key, @field.types.map { |type| [::Avo::App.get_resource_by_model_name(type.to_s).name, type.to_s] },
|
17
17
|
{
|
18
18
|
value: @field.value,
|
19
19
|
include_blank: @field.placeholder,
|
@@ -40,7 +40,7 @@
|
|
40
40
|
data-belongs-to-field-target="type"
|
41
41
|
data-type="<%= type %>"
|
42
42
|
>
|
43
|
-
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, label: type.to_s.
|
43
|
+
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, label: ::Avo::App.get_resource_by_model_name(type.to_s).name do %>
|
44
44
|
<% if @field.searchable %>
|
45
45
|
<%= render Avo::Fields::BelongsToField::AutocompleteComponent.new form: @form,
|
46
46
|
disabled: disabled,
|
@@ -70,14 +70,8 @@ module Avo
|
|
70
70
|
|
71
71
|
file_name = "#{file_name}.svg" unless file_name.end_with? ".svg"
|
72
72
|
|
73
|
-
|
74
|
-
|
75
|
-
inline_svg file_name, **args
|
76
|
-
end
|
77
|
-
else
|
78
|
-
with_asset_finder(::Avo::SvgFinder) do
|
79
|
-
inline_svg file_name, **args
|
80
|
-
end
|
73
|
+
with_asset_finder(::Avo::SvgFinder) do
|
74
|
+
inline_svg file_name, **args
|
81
75
|
end
|
82
76
|
end
|
83
77
|
|
data/lib/avo/version.rb
CHANGED
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.14.3.pre.
|
4
|
+
version: 2.14.3.pre.7.polytranslations1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Marin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-09-
|
12
|
+
date: 2022-09-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|