refactor(attachment): extract PendingPoll component

This commit is contained in:
Colin Darie 2022-11-23 12:54:09 +01:00
parent b110e58f2f
commit 42363e0b0d
13 changed files with 109 additions and 83 deletions

View file

@ -9,7 +9,4 @@
= render Attachment::EditComponent.new(champ:, attached_file:, attachment: nil, index: attachments_count, user_can_destroy:)
// single poll and refresh message for all attachments
- if in_progress?
%div{ data: poll_controller_options }
- if in_progress_long?
= render Attachment::LongProcessingRefreshComponent.new
= render Attachment::PendingPollComponent.new(attachments: attachments, poll_url:)