mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 02:03:07 +08:00
Update names to use perspective instead of view
This commit is contained in:
parent
90fedbf131
commit
fe625d8f6d
2 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ class ThreadListStore extends NylasStore
|
|||
constructor: ->
|
||||
@_resetInstanceVars()
|
||||
|
||||
@listenTo FocusedPerspectiveStore, @_onMailViewChanged
|
||||
@listenTo FocusedPerspectiveStore, @_onPerspectiveChanged
|
||||
@createView()
|
||||
|
||||
NylasEnv.commands.add "body",
|
||||
|
@ -44,7 +44,7 @@ class ThreadListStore extends NylasStore
|
|||
mailboxPerspective = FocusedPerspectiveStore.current()
|
||||
return unless mailboxPerspective
|
||||
|
||||
@setView(ThreadListViewFactory.viewForMailView(mailboxPerspective))
|
||||
@setView(ThreadListViewFactory.viewForPerspective(mailboxPerspective))
|
||||
Actions.setFocus(collection: 'thread', item: null)
|
||||
|
||||
setView: (view) ->
|
||||
|
@ -79,7 +79,7 @@ class ThreadListStore extends NylasStore
|
|||
|
||||
# Inbound Events
|
||||
|
||||
_onMailViewChanged: ->
|
||||
_onPerspectiveChanged: ->
|
||||
@createView()
|
||||
|
||||
_onViewDataChanged: ({previous, next} = {}) =>
|
||||
|
|
|
@ -70,7 +70,7 @@ _observableForThreadMessages = (id, initialModels) ->
|
|||
|
||||
|
||||
module.exports = ThreadListViewFactory =
|
||||
viewForMailView: (mailboxPerspective) =>
|
||||
viewForPerspective: (mailboxPerspective) =>
|
||||
if mailboxPerspective.searchQuery
|
||||
ThreadListViewFactory.viewForSearch(mailboxPerspective.searchQuery, mailboxPerspective.account?.id)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue