mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
6fcd5f2ced
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
18 lines
540 B
CoffeeScript
18 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
|