mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
1bd3fc74e9
Summary: Add specs to test the components of open tracking and link tracking. Notably does not test the overall functionality, which still needs specs. Test Plan: adds specs Reviewers: juan, evan, bengotow Reviewed By: evan, bengotow Differential Revision: https://phab.nylas.com/D2667
25 lines
1.2 KiB
JavaScript
25 lines
1.2 KiB
JavaScript
|
|
import {ComponentRegistry, ExtensionRegistry, Actions} from 'nylas-exports';
|
|
import OpenTrackingButton from './open-tracking-button';
|
|
import OpenTrackingIcon from './open-tracking-icon';
|
|
import OpenTrackingMessageStatus from './open-tracking-message-status';
|
|
import OpenTrackingAfterSend from './open-tracking-after-send';
|
|
import OpenTrackingComposerExtension from './open-tracking-composer-extension';
|
|
|
|
export function activate() {
|
|
ComponentRegistry.register(OpenTrackingButton, {role: 'Composer:ActionButton'});
|
|
ComponentRegistry.register(OpenTrackingIcon, {role: 'ThreadListIcon'});
|
|
ComponentRegistry.register(OpenTrackingMessageStatus, {role: 'MessageHeaderStatus'});
|
|
ExtensionRegistry.Composer.register(OpenTrackingComposerExtension);
|
|
this._unlistenSendDraftSuccess = Actions.sendDraftSuccess.listen(OpenTrackingAfterSend.afterDraftSend);
|
|
}
|
|
|
|
export function serialize() {}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(OpenTrackingButton);
|
|
ComponentRegistry.unregister(OpenTrackingIcon);
|
|
ComponentRegistry.unregister(OpenTrackingMessageStatus);
|
|
ExtensionRegistry.Composer.unregister(OpenTrackingComposerExtension);
|
|
this._unlistenSendDraftSuccess()
|
|
}
|