mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
ae5429365e
Summary: Adding a simple GitHub plugin that shows a button on the thread view. If we detect the "open in github" links, then we'll show the button on the thread. Test Plan: manual Reviewers: dillon, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D1959
12 lines
325 B
CoffeeScript
12 lines
325 B
CoffeeScript
{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
|