app/components/avo/fields/file_field/edit_component.html.erb in avo-2.13.2.pre.2 vs app/components/avo/fields/file_field/edit_component.html.erb in avo-2.13.3.pre.1
- old
+ new
@@ -8,10 +8,10 @@
<% if @resource.authorization.authorize_action(:upload_attachments?, raise_exception: false) %>
<%= @form.file_field @field.id,
accept: @field.accept,
data: @field.get_html(:data, view: view, element: :input),
direct_upload: @field.direct_upload,
- disabled: @field.readonly,
+ disabled: @field.is_readonly?,
style: @field.get_html(:style, view: view, element: :input)
%>
<% end %>
<% end %>