Mailspring/internal_packages/undo-redo/lib/main.cjsx
EthanBlackburn 17bcb88ae3 UndoRedoButton now shows
Summary: A notification now appears at the bottom of the window when the user performs an action that can be undone

Test Plan: Tested manually

Reviewers: bengotow

Reviewed By: bengotow

Subscribers: mg

Differential Revision: https://phab.nylas.com/D1820
2015-07-31 13:12:47 -07:00

13 lines
357 B
CoffeeScript

{ComponentRegistry, WorkspaceStore} = require 'nylas-exports'
module.exports =
activate: (@state={}) ->
UndoRedoComponent = require "./undo-redo-component"
ComponentRegistry.register UndoRedoComponent,
location: WorkspaceStore.Location.ThreadList
deactivate: ->
ComponentRegistry.unregister UndoRedoComponent
serialize: -> @state