From fe625d8f6d6bf1f72b4e9ecf5917b1ec3640fb43 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Tue, 12 Jan 2016 09:49:49 -0800 Subject: [PATCH] Update names to use perspective instead of view --- internal_packages/thread-list/lib/thread-list-store.coffee | 6 +++--- .../thread-list/lib/thread-list-view-factory.coffee | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal_packages/thread-list/lib/thread-list-store.coffee b/internal_packages/thread-list/lib/thread-list-store.coffee index c53b52e16..75bf9b23f 100644 --- a/internal_packages/thread-list/lib/thread-list-store.coffee +++ b/internal_packages/thread-list/lib/thread-list-store.coffee @@ -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} = {}) => diff --git a/internal_packages/thread-list/lib/thread-list-view-factory.coffee b/internal_packages/thread-list/lib/thread-list-view-factory.coffee index 718043b2e..9a6fee973 100644 --- a/internal_packages/thread-list/lib/thread-list-view-factory.coffee +++ b/internal_packages/thread-list/lib/thread-list-view-factory.coffee @@ -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