mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 03:43:16 +08:00
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
import { localized, ComponentRegistry } from 'mailspring-exports';
|
|
import { HasTutorialTip } from 'mailspring-component-kit';
|
|
|
|
import { ToolbarSnooze, QuickActionSnooze } from './snooze-buttons';
|
|
import SnoozeMailLabel from './snooze-mail-label';
|
|
import SnoozeStore from './snooze-store';
|
|
|
|
export function activate() {
|
|
const ToolbarSnoozeWithTutorialTip = HasTutorialTip(ToolbarSnooze, {
|
|
title: localized('Handle it later!'),
|
|
instructions: localized(
|
|
"Snooze this email and it'll return to your inbox later. Click here or swipe across the thread in your inbox to snooze."
|
|
),
|
|
});
|
|
|
|
SnoozeStore.activate();
|
|
ComponentRegistry.register(ToolbarSnoozeWithTutorialTip, { role: 'ThreadActionsToolbarButton' });
|
|
ComponentRegistry.register(QuickActionSnooze, { role: 'ThreadListQuickAction' });
|
|
ComponentRegistry.register(SnoozeMailLabel, { role: 'Thread:MailLabel' });
|
|
}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(ToolbarSnooze);
|
|
ComponentRegistry.unregister(QuickActionSnooze);
|
|
ComponentRegistry.unregister(SnoozeMailLabel);
|
|
SnoozeStore.deactivate();
|
|
}
|
|
|
|
export function serialize() {}
|