mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
13 lines
325 B
Text
13 lines
325 B
Text
|
{ComponentRegistry} = require 'nylas-exports'
|
||
|
ViewOnGithubButton = require "./view-on-github-button"
|
||
|
|
||
|
module.exports =
|
||
|
activate: (@state={}) ->
|
||
|
ComponentRegistry.register ViewOnGithubButton,
|
||
|
roles: ['message:Toolbar']
|
||
|
|
||
|
deactivate: ->
|
||
|
ComponentRegistry.unregister(ViewOnGithubButton)
|
||
|
|
||
|
serialize: -> @state
|