test(attachments): more components tests & improvements
This commit is contained in:
parent
fefc326e6b
commit
6ac0114992
8 changed files with 152 additions and 19 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
- each_attachment do |attachment, index|
|
||||
%div{ id: dom_id(attachment) }
|
||||
= render Attachment::EditComponent.new(champ:, attached_file:, attachment:, index:, as_multiple: true, user_can_destroy:)
|
||||
= render Attachment::EditComponent.new(champ:, attached_file:, attachment:, index:, as_multiple: true, user_can_destroy:, user_can_download:)
|
||||
|
||||
%div{ id: empty_component_id, class: class_names("hidden": !can_attach_next?) }
|
||||
= render Attachment::EditComponent.new(champ:, attached_file:, attachment: nil, index: attachments_count, user_can_destroy:)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue