2015-05-09 07:36:48 +08:00
|
|
|
TodayView = require "./today-view"
|
|
|
|
TodayIcon = require "./today-icon"
|
|
|
|
{ComponentRegistry,
|
2015-05-15 08:08:30 +08:00
|
|
|
WorkspaceStore} = require 'nylas-exports'
|
2015-05-09 07:36:48 +08:00
|
|
|
|
|
|
|
module.exports =
|
|
|
|
|
|
|
|
activate: (@state={}) ->
|
2015-06-18 03:29:49 +08:00
|
|
|
WorkspaceStore.defineSheet 'Today', {root: true, supportedModes: ['list'], name: 'Today', icon: 'today.png'},
|
2015-05-09 07:36:48 +08:00
|
|
|
list: ['RootSidebar', 'Today']
|
|
|
|
|
|
|
|
ComponentRegistry.register TodayView,
|
|
|
|
location: WorkspaceStore.Location.Today
|
|
|
|
|
|
|
|
deactivate: ->
|
|
|
|
ComponentRegistry.unregister(TodayView)
|
2015-06-03 10:04:21 +08:00
|
|
|
WorkspaceStore.undefineSheet('Today')
|