Mailspring/internal_packages/attachments/lib/main.es6
Juan Tejada fce1673aac feat(download-all): Adds download-all button + style updates, more ES6
Summary:
- Adds initial version of download all button
- Converts attachments plugin to ES6 and adds updated styling
- Updates quoted text button
- #905, #1712

Test Plan: - Unit + manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2769
2016-03-21 18:23:26 -07:00

15 lines
504 B
JavaScript

import {ComponentRegistry} from 'nylas-exports'
import AttachmentComponent from "./attachment-component"
import ImageAttachmentComponent from "./image-attachment-component"
export function activate() {
ComponentRegistry.register(AttachmentComponent, {role: 'Attachment'})
ComponentRegistry.register(ImageAttachmentComponent, {role: 'Attachment:Image'})
}
export function deactivate() {
ComponentRegistry.unregister(AttachmentComponent)
ComponentRegistry.unregister(ImageAttachmentComponent)
}