mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 08:03: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}} |