mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
19 lines
638 B
CoffeeScript
19 lines
638 B
CoffeeScript
{WorkspaceStore, ComponentRegistry} = require 'nylas-exports'
|
|
FeedbackButton = require './feedback-button'
|
|
FeedbackActions = require './feedback-actions'
|
|
protocol = require('remote').require('protocol')
|
|
|
|
module.exports =
|
|
activate: (@state) ->
|
|
ComponentRegistry.register FeedbackButton,
|
|
location: WorkspaceStore.Sheet.Global.Footer
|
|
|
|
protocol.registerStringProtocol 'nylas-feedback-available', (request, callback) =>
|
|
FeedbackActions.feedbackAvailable()
|
|
callback('ok')
|
|
|
|
serialize: ->
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister(FeedbackButton)
|
|
protocol.unregisterProtocol('nylas-feedback-available')
|