diff --git a/internal_packages/account-sidebar/lib/account-sidebar-store.coffee b/internal_packages/account-sidebar/lib/account-sidebar-store.coffee index 6132c58f2..2b71e5beb 100644 --- a/internal_packages/account-sidebar/lib/account-sidebar-store.coffee +++ b/internal_packages/account-sidebar/lib/account-sidebar-store.coffee @@ -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() diff --git a/internal_packages/today/lib/main.cjsx b/internal_packages/today/lib/main.cjsx index 37a066479..c65796a6d 100644 --- a/internal_packages/today/lib/main.cjsx +++ b/internal_packages/today/lib/main.cjsx @@ -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') \ No newline at end of file + # ComponentRegistry.unregister(TodayView) + # WorkspaceStore.undefineSheet('Today')