uploads: change loading indicator for thumbnails.

Use a spinner icon instead of the word "Loading" for thumbnails that are
being processed in the background in a batch upload.

Also use morphdom to update thumbnails so we only update the parts of
the DOM that actually changed.
This commit is contained in:
evazion
2022-02-18 15:59:33 -06:00
parent a1d2572bad
commit e37dd3a6d0
6 changed files with 18 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
<% if upload_media_asset.failed? %>
Failed
<% else %>
Loading
<%= spinner_icon(class: "animate-spin h-8") %>
<% end %>
<% end %>