mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
30 lines
1 KiB
JavaScript
30 lines
1 KiB
JavaScript
import {ComponentRegistry} from 'nylas-exports';
|
|
import {HasTutorialTip} from 'nylas-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: "Handle it later!",
|
|
instructions: "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() {
|
|
|
|
}
|