Mailspring/internal_packages/composer-signature/lib/main.es6
Ben Gotow 94badcda15 es6(*): convert 20+ source files used in example packages to ES2016
There could be a few lurking bugs. Please test!
2016-02-29 18:47:22 -08:00

29 lines
920 B
JavaScript

import {PreferencesUIStore, ExtensionRegistry} from 'nylas-exports';
import SignatureComposerExtension from './signature-composer-extension';
import SignatureStore from './signature-store';
import PreferencesSignatures from "./preferences-signatures";
export function activate() {
this.preferencesTab = new PreferencesUIStore.TabItem({
tabId: "Signatures",
displayName: "Signatures",
component: PreferencesSignatures,
});
ExtensionRegistry.Composer.register(SignatureComposerExtension);
PreferencesUIStore.registerPreferencesTab(this.preferencesTab);
this.signatureStore = new SignatureStore();
this.signatureStore.activate();
}
export function deactivate() {
ExtensionRegistry.Composer.unregister(SignatureComposerExtension);
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId);
this.signatureStore.deactivate();
}
export function serialize() {
return {};
}