fix(today): Temporarily remove today view

Fixes T2342
This commit is contained in:
Ben Gotow 2015-07-20 11:53:48 -07:00
parent 17fcdc4eaf
commit e4752f3d3a
2 changed files with 13 additions and 14 deletions

View file

@ -74,13 +74,12 @@ class AccountSidebarStore extends NylasStore
extraSheets = _.filter WorkspaceStore.Sheet, (sheet) ->
sheet.root and sheet.name and not (sheet in featureSheets)
lastSections = @_sections
@_sections = [
{ label: '', items: featureSheets, type: 'sheet' },
{ label: 'Mailboxes', items: standardCategories, type: 'category' },
{ label: 'Views', items: extraSheets, type: 'sheet' },
{ label: CategoryStore.categoryLabel(), items: userCategories, type: 'category' },
]
@_sections = []
if featureSheets.length > 0
@_sections.push { label: '', items: featureSheets, type: 'sheet' }
@_sections.push { label: 'Mailboxes', items: standardCategories, type: 'category' }
@_sections.push { label: 'Views', items: extraSheets, type: 'sheet' }
@_sections.push { label: CategoryStore.categoryLabel(), items: userCategories, type: 'category' }
@trigger()

View file

@ -6,12 +6,12 @@ TodayIcon = require "./today-icon"
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
# 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')
# ComponentRegistry.unregister(TodayView)
# WorkspaceStore.undefineSheet('Today')