uploads: autorefresh thumbnails on multi-file uploads page.

Automatically refresh thumbnails on the multi-file upload page as images
are processed in the background.
This commit is contained in:
evazion
2022-02-15 00:47:21 -06:00
parent 37075988ce
commit 36265dbff0
10 changed files with 32 additions and 10 deletions

View File

@@ -3,14 +3,15 @@
class MediaAssetGalleryComponent < ApplicationComponent
DEFAULT_SIZE = 180
attr_reader :inline, :size, :options
attr_reader :inline, :size, :classes
renders_many :media_assets
renders_one :footer
def initialize(inline: false, size: DEFAULT_SIZE)
def initialize(inline: false, size: DEFAULT_SIZE, classes: [])
super
@inline = inline
@size = size
@classes = classes
end
end