Ghost/ghost/admin/app/templates/components/gh-uploader.hbs
Kevin Ansfield d33cfdac30 🐛 Fixed inability to re-upload the same redirects file (#912)
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
2017-11-22 17:04:48 +00:00

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')
)}}