mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
25 lines
797 B
JavaScript
25 lines
797 B
JavaScript
import {ComponentRegistry} from 'nylas-exports';
|
|
import {ToolbarSnooze, QuickActionSnooze} from './snooze-buttons';
|
|
import SnoozeMailLabel from './snooze-mail-label'
|
|
import SnoozeStore from './snooze-store'
|
|
|
|
|
|
export function activate() {
|
|
this.snoozeStore = new SnoozeStore()
|
|
|
|
this.snoozeStore.activate()
|
|
ComponentRegistry.register(ToolbarSnooze, {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);
|
|
this.snoozeStore.deactivate()
|
|
}
|
|
|
|
export function serialize() {
|
|
|
|
}
|