mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-27 17:42:59 +08:00
22 lines
674 B
CoffeeScript
22 lines
674 B
CoffeeScript
|
{ComponentRegistry,
|
||
|
MessageStore,
|
||
|
WorkspaceStore} = require 'nylas-exports'
|
||
|
|
||
|
AutoloadImagesExtension = require './autoload-images-extension'
|
||
|
AutoloadImagesHeader = require './autoload-images-header'
|
||
|
|
||
|
module.exports =
|
||
|
item: null # The DOM item the main React component renders into
|
||
|
|
||
|
activate: (@state={}) ->
|
||
|
# Register Message List Actions we provide globally
|
||
|
MessageStore.registerExtension(AutoloadImagesExtension)
|
||
|
ComponentRegistry.register AutoloadImagesHeader,
|
||
|
role: 'message:BodyHeader'
|
||
|
|
||
|
deactivate: ->
|
||
|
MessageStore.unregisterExtension(AutoloadImagesExtension)
|
||
|
ComponentRegistry.unregister(AutoloadImagesHeader)
|
||
|
|
||
|
serialize: -> @state
|