2015-10-08 04:55:54 +08:00
|
|
|
{WorkspaceStore, ComponentRegistry} = require 'nylas-exports'
|
|
|
|
FeedbackButton = require './feedback-button'
|
2015-10-10 07:12:48 +08:00
|
|
|
FeedbackActions = require './feedback-actions'
|
|
|
|
protocol = require('remote').require('protocol')
|
2015-10-08 04:55:54 +08:00
|
|
|
|
|
|
|
module.exports =
|
|
|
|
activate: (@state) ->
|
|
|
|
ComponentRegistry.register FeedbackButton,
|
|
|
|
location: WorkspaceStore.Sheet.Global.Footer
|
|
|
|
|
2015-10-10 07:12:48 +08:00
|
|
|
protocol.registerProtocol 'nylas-feedback-available', =>
|
|
|
|
FeedbackActions.feedbackAvailable()
|
|
|
|
|
2015-10-08 04:55:54 +08:00
|
|
|
serialize: ->
|
|
|
|
|
|
|
|
deactivate: ->
|
|
|
|
ComponentRegistry.unregister(FeedbackButton)
|
2015-10-10 07:12:48 +08:00
|
|
|
protocol.unregisterProtocol('nylas-feedback-available')
|