discourse/app/assets/javascripts/admin/addon/components/images-uploader.hbs
David Taylor 30eb00ac20
DEV: Update images-uploader uppy usage (#29341)
Also moves this component to the admin bundle. It is only used in the admin panel, and has dependencies on admin-specific i18n strings.
2024-10-23 10:08:09 +01:00

19 lines
516 B
Handlebars

<label
class="btn"
disabled={{this.uploadingOrProcessing}}
title={{i18n "admin.site_settings.uploaded_image_list.upload.title"}}
>
{{d-icon "far-image"}}&nbsp;{{this.uploadButtonText}}
<input
{{did-insert this.uppyUpload.setup}}
class="hidden-upload-field"
disabled={{this.uppyUpload.uploading}}
type="file"
accept="image/*"
multiple
/>
</label>
{{#if this.uploadingOrProcessing}}
<span>{{i18n "upload_selector.uploading"}}
{{this.uppyUpload.uploadProgress}}%</span>
{{/if}}