diff --git a/app/components/application_component.rb b/app/components/application_component.rb index c061993e2..96f355c03 100644 --- a/app/components/application_component.rb +++ b/app/components/application_component.rb @@ -2,7 +2,7 @@ class ApplicationComponent < ViewComponent::Base delegate :link_to_user, :time_ago_in_words_tagged, :format_text, :external_link_to, :tag_class, :current_page_path, to: :helpers - delegate :edit_icon, :delete_icon, :undelete_icon, :flag_icon, :upvote_icon, :downvote_icon, :link_icon, :sticky_icon, :unsticky_icon, :hashtag_icon, :caret_down_icon, :image_icon, to: :helpers + delegate :edit_icon, :delete_icon, :undelete_icon, :flag_icon, :upvote_icon, :downvote_icon, :link_icon, :sticky_icon, :unsticky_icon, :hashtag_icon, :caret_down_icon, :image_icon, :spinner_icon, to: :helpers def policy(subject) Pundit.policy!(current_user, subject) diff --git a/app/components/file_upload_component/file_upload_component.html.erb b/app/components/file_upload_component/file_upload_component.html.erb index bec8d1452..4570360fc 100644 --- a/app/components/file_upload_component/file_upload_component.html.erb +++ b/app/components/file_upload_component/file_upload_component.html.erb @@ -14,10 +14,10 @@ <%= f.input :source, label: false, as: :string, placeholder: "Paste URL here", input_html: { value: url, class: "text-center" }, wrapper_html: { class: "px-4 text-center" } %> <%= f.input :referer_url, as: :hidden, input_html: { value: referer_url } %> <%= f.submit "Upload", class: "button-primary text-center mx-auto hidden", "data-disable-with": false %> - - <% end %> + <%= spinner_icon(class: "hidden animate-spin absolute inset-0 m-auto h-12 link-color") %> +