mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
27 lines
863 B
JavaScript
27 lines
863 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);
|
|
SignatureStore.activate();
|
|
}
|
|
|
|
export function deactivate() {
|
|
ExtensionRegistry.Composer.unregister(SignatureComposerExtension);
|
|
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId);
|
|
SignatureStore.deactivate();
|
|
}
|
|
|
|
export function serialize() {
|
|
return {};
|
|
}
|