Mailspring/internal_packages/composer/lib
Evan Morikawa a31c2808a9 fix(composer): make uploading attachments work
Summary:
There were several issues causing uploading to not work:

  # The file upload response came back as a string instead of an Object. Needed to detect and `JSON.parse`
  # The `MessageAttachment` component was not available as a package on the popout composer (since it used to be inside of `MessageList`)
  # The `message.draft` bit was not set properly causing the DB changes to be ignored
  # The actions notifying of `uploadStateChanged` were only being broadcasted in the main window (where the `TaskStore` is) and never making it to the popout composer.

Also keybindings for close window and up & down arrows were fixed.

Test Plan: edgehill --test

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://review.inboxapp.com/D1157
2015-02-06 17:41:59 -05:00
..
composer-participant.cjsx fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
composer-participants.cjsx refactor(keymaps): override-key-bindings instead of native-key-bindings 2015-02-04 21:31:41 -05:00
composer-view.cjsx fix(composer): make uploading attachments work 2015-02-06 17:41:59 -05:00
contenteditable-component.cjsx fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
contenteditable-toolbar.cjsx fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
draft-store-proxy.coffee fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
file-uploads.cjsx fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
main.cjsx fix(composer): make uploading attachments work 2015-02-06 17:41:59 -05:00
new-compose-button.cjsx fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
scribe-template-regions.js fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00