Update names to use perspective instead of view

This commit is contained in:
Juan Tejada 2016-01-12 09:49:49 -08:00
parent 90fedbf131
commit fe625d8f6d
2 changed files with 4 additions and 4 deletions

View file

@ -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} = {}) =>

View file

@ -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