Files
danbooru/app/components/media_asset_gallery_component.rb
evazion 36265dbff0 uploads: autorefresh thumbnails on multi-file uploads page.
Automatically refresh thumbnails on the multi-file upload page as images
are processed in the background.
2022-02-15 00:59:30 -06:00

18 lines
347 B
Ruby

# frozen_string_literal: true
class MediaAssetGalleryComponent < ApplicationComponent
DEFAULT_SIZE = 180
attr_reader :inline, :size, :classes
renders_many :media_assets
renders_one :footer
def initialize(inline: false, size: DEFAULT_SIZE, classes: [])
super
@inline = inline
@size = size
@classes = classes
end
end