mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
24 lines
736 B
JavaScript
24 lines
736 B
JavaScript
|
/** @babel */
|
||
|
import {ComponentRegistry} from 'nylas-exports';
|
||
|
import {ToolbarSnooze, QuickActionSnooze, BulkThreadSnooze} from './components';
|
||
|
import SnoozeStore from './snooze-store'
|
||
|
|
||
|
|
||
|
export function activate() {
|
||
|
this.snoozeStore = new SnoozeStore()
|
||
|
ComponentRegistry.register(ToolbarSnooze, {role: 'message:Toolbar'});
|
||
|
ComponentRegistry.register(QuickActionSnooze, {role: 'ThreadListQuickAction'});
|
||
|
ComponentRegistry.register(BulkThreadSnooze, {role: 'thread:BulkAction'});
|
||
|
}
|
||
|
|
||
|
export function deactivate() {
|
||
|
ComponentRegistry.unregister(ToolbarSnooze);
|
||
|
ComponentRegistry.unregister(QuickActionSnooze);
|
||
|
ComponentRegistry.unregister(BulkThreadSnooze);
|
||
|
this.snoozeStore.deactivate()
|
||
|
}
|
||
|
|
||
|
export function serialize() {
|
||
|
|
||
|
}
|