mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
d33cfdac30
closes https://github.com/TryGhost/Ghost/issues/9266 - `emberx-file-input` passes a `resetInput` function through to it's action handler but we weren't doing that in our override component. Added the missing functionality and updated all of our handlers to use that instead of doing manual resets - added a `setFiles` action to `{{gh-uploader}}` and yield it for use in block invocations
9 lines
227 B
Handlebars
9 lines
227 B
Handlebars
{{yield (hash
|
|
cancel=(action "cancel")
|
|
errors=errors
|
|
files=files
|
|
isUploading=_uploadFiles.isRunning
|
|
progressBar=(component "gh-progress-bar" percentage=uploadPercentage)
|
|
setFiles=(action 'setFiles')
|
|
)}}
|