mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
fc4b3b56d7
Summary: Fixes: T1334 remove final InboxApp references move out all underscore-plus methods Mass find and replace of underscore-plus sed -i '' -- 's/underscore-plus/underscore/g' **/*.coffee sed -i '' -- 's/underscore-plus/underscore/g' **/*.cjsx Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D1534
25 lines
754 B
CoffeeScript
25 lines
754 B
CoffeeScript
React = require "react"
|
|
{ComponentRegistry, DraftStore} = require 'nylas-exports'
|
|
TemplatePicker = require './template-picker'
|
|
TemplateStatusBar = require './template-status-bar'
|
|
Extension = require './draft-extension'
|
|
_ = require 'underscore'
|
|
|
|
module.exports =
|
|
item: null # The DOM item the main React component renders into
|
|
|
|
activate: (@state={}) ->
|
|
ComponentRegistry.register TemplatePicker,
|
|
role: 'Composer:ActionButton'
|
|
|
|
ComponentRegistry.register TemplateStatusBar,
|
|
role: 'Composer:Footer'
|
|
|
|
DraftStore.registerExtension(Extension)
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister(TemplatePicker)
|
|
ComponentRegistry.unregister(TemplateStatusBar)
|
|
DraftStore.unregisterExtension(Extension)
|
|
|
|
serialize: -> @state
|