mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(today): Temporarily remove today view
Fixes T2342
This commit is contained in:
parent
17fcdc4eaf
commit
e4752f3d3a
2 changed files with 13 additions and 14 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue