Mailspring/internal_packages/attachments/lib/main.cjsx
Evan Morikawa 449e11cdda feat(attachments): new attachments & uploads UI with img support
Summary:
Initial styles on attachments ui

More file uploading UI

fix race condition in draft saving

attachments and uploads interweaved

Test Plan: edgehill --test

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D1610
2015-06-11 12:04:52 -07:00

19 lines
540 B
CoffeeScript

{ComponentRegistry} = require 'nylas-exports'
module.exports =
activate: (@state={}) ->
AttachmentComponent = require "./attachment-component"
ImageAttachmentComponent = require "./image-attachment-component"
ComponentRegistry.register AttachmentComponent,
role: 'Attachment'
ComponentRegistry.register ImageAttachmentComponent,
role: 'Attachment:Image'
deactivate: ->
ComponentRegistry.unregister AttachmentComponent
ComponentRegistry.unregister ImageAttachmentComponent
serialize: -> @state