mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 08:35:16 +08:00
fix(draft-list): Revert regression for sheet selection
This commit is contained in:
parent
ff4cbc8d13
commit
fd61995b92
1 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
import {WorkspaceStore, ComponentRegistry} from 'nylas-exports'
|
import {WorkspaceStore, ComponentRegistry, Actions} from 'nylas-exports'
|
||||||
import DraftList from './draft-list'
|
import DraftList from './draft-list'
|
||||||
import DraftListToolbar from './draft-list-toolbar'
|
import DraftListToolbar from './draft-list-toolbar'
|
||||||
import DraftListSendStatus from './draft-list-send-status'
|
import DraftListSendStatus from './draft-list-send-status'
|
||||||
|
@ -10,7 +10,11 @@ export function activate() {
|
||||||
'Drafts',
|
'Drafts',
|
||||||
{root: true},
|
{root: true},
|
||||||
{list: ['RootSidebar', 'DraftList']}
|
{list: ['RootSidebar', 'DraftList']}
|
||||||
)
|
);
|
||||||
|
if (NylasEnv.savedState.perspective &&
|
||||||
|
NylasEnv.savedState.perspective.type === "DraftsMailboxPerspective") {
|
||||||
|
Actions.selectRootSheet(WorkspaceStore.Sheet.Drafts);
|
||||||
|
}
|
||||||
|
|
||||||
ComponentRegistry.register(DraftList, {location: WorkspaceStore.Location.DraftList})
|
ComponentRegistry.register(DraftList, {location: WorkspaceStore.Location.DraftList})
|
||||||
ComponentRegistry.register(DraftListToolbar, {location: WorkspaceStore.Location.DraftList.Toolbar})
|
ComponentRegistry.register(DraftListToolbar, {location: WorkspaceStore.Location.DraftList.Toolbar})
|
||||||
|
|
Loading…
Reference in a new issue