Mailspring/internal_packages/today/lib/main.cjsx
Ben Gotow 9599aba8ae fix(nylas-api): Globally handle 401s and notify user they need to sign in
Summary: Fixes T1843

Test Plan: No tests for this file yet

Reviewers: evan

Reviewed By: evan

Maniphest Tasks: T1843

Differential Revision: https://phab.nylas.com/D1641
2015-06-17 12:29:49 -07:00

17 lines
No EOL
522 B
CoffeeScript

TodayView = require "./today-view"
TodayIcon = require "./today-icon"
{ComponentRegistry,
WorkspaceStore} = require 'nylas-exports'
module.exports =
activate: (@state={}) ->
WorkspaceStore.defineSheet 'Today', {root: true, supportedModes: ['list'], name: 'Today', icon: 'today.png'},
list: ['RootSidebar', 'Today']
ComponentRegistry.register TodayView,
location: WorkspaceStore.Location.Today
deactivate: ->
ComponentRegistry.unregister(TodayView)
WorkspaceStore.undefineSheet('Today')