mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 12:53:44 +08:00
30eb00ac20
Also moves this component to the admin bundle. It is only used in the admin panel, and has dependencies on admin-specific i18n strings.
19 lines
516 B
Handlebars
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"}} {{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}} |