2016-02-19 02:00:11 +08:00
|
|
|
/** @babel */
|
|
|
|
import {ComponentRegistry} from 'nylas-exports';
|
2016-02-23 07:48:07 +08:00
|
|
|
import {ToolbarSnooze, BulkThreadSnooze} from './toolbar-components';
|
|
|
|
import QuickActionSnoozeButton from './quick-action-snooze-button'
|
2016-02-19 02:00:11 +08:00
|
|
|
import SnoozeStore from './snooze-store'
|
|
|
|
|
|
|
|
|
|
|
|
export function activate() {
|
|
|
|
this.snoozeStore = new SnoozeStore()
|
|
|
|
ComponentRegistry.register(ToolbarSnooze, {role: 'message:Toolbar'});
|
2016-02-23 07:48:07 +08:00
|
|
|
ComponentRegistry.register(QuickActionSnoozeButton, {role: 'ThreadListQuickAction'});
|
2016-02-19 02:00:11 +08:00
|
|
|
ComponentRegistry.register(BulkThreadSnooze, {role: 'thread:BulkAction'});
|
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
|
|
|
ComponentRegistry.unregister(ToolbarSnooze);
|
2016-02-23 07:48:07 +08:00
|
|
|
ComponentRegistry.unregister(QuickActionSnoozeButton);
|
2016-02-19 02:00:11 +08:00
|
|
|
ComponentRegistry.unregister(BulkThreadSnooze);
|
|
|
|
this.snoozeStore.deactivate()
|
|
|
|
}
|
|
|
|
|
|
|
|
export function serialize() {
|
|
|
|
|
|
|
|
}
|