mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-21 15:42:19 +08:00
15 lines
370 B
CoffeeScript
15 lines
370 B
CoffeeScript
{ComponentRegistry} = require 'inbox-exports'
|
|
|
|
module.exports =
|
|
activate: (@state={}) ->
|
|
AttachmentComponent = require "./attachment-component"
|
|
|
|
ComponentRegistry.register
|
|
name: 'AttachmentComponent'
|
|
view: AttachmentComponent
|
|
role: 'Attachment'
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister "AttachmentComponent"
|
|
|
|
serialize: -> @state
|