mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-25 07:58:07 +08:00
Followup to 310cd513d8. The `uploadDone`
callback returns the whole upload object, so we need to extract the URL
from it in these cases.
9 lines
No EOL
322 B
Handlebars
Vendored
9 lines
No EOL
322 B
Handlebars
Vendored
<UppyImageUploader
|
|
@imageUrl={{this.value}}
|
|
@placeholderUrl={{this.setting.placeholder}}
|
|
@onUploadDone={{this.uploadDone}}
|
|
@onUploadDeleted={{fn (mut this.value) null}}
|
|
@additionalParams={{hash for_site_setting=true}}
|
|
@type="site_setting"
|
|
@id={{concat "site-setting-image-uploader-" this.setting.setting}}
|
|
/> |