2015-11-07 07:53:21 +08:00
|
|
|
{ComponentRegistry,
|
2015-11-28 03:49:24 +08:00
|
|
|
ExtensionRegistry,
|
2015-11-07 07:53:21 +08:00
|
|
|
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
|
2015-11-28 03:49:24 +08:00
|
|
|
ExtensionRegistry.MessageView.register AutoloadImagesExtension
|
2015-11-07 07:53:21 +08:00
|
|
|
ComponentRegistry.register AutoloadImagesHeader,
|
|
|
|
role: 'message:BodyHeader'
|
|
|
|
|
|
|
|
deactivate: ->
|
2015-11-28 03:49:24 +08:00
|
|
|
ExtensionRegistry.MessageView.unregister AutoloadImagesExtension
|
2015-11-07 07:53:21 +08:00
|
|
|
ComponentRegistry.unregister(AutoloadImagesHeader)
|
|
|
|
|
|
|
|
serialize: -> @state
|