mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
18 lines
591 B
CoffeeScript
18 lines
591 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.registerProtocol 'nylas-feedback-available', =>
|
|
FeedbackActions.feedbackAvailable()
|
|
|
|
serialize: ->
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister(FeedbackButton)
|
|
protocol.unregisterProtocol('nylas-feedback-available')
|