From f9ee1cf5f904116e4d1d70a8eaf4ee1d58b18a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Fri, 28 Aug 2020 10:16:37 +0000 Subject: [FIX] mail, *: rename thread viewer to thread view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "viewer" should be the "parent" not the view itself. This distinction will become important in a future commit to allow viewers to not display the view in some situations. Rename done as a standalone commit to ease diff readability. Part of task-2310623 closes odoo/odoo#56737 X-original-commit: 1b811e6a972d72de02965adda67c5b039bee023f Related: odoo/enterprise#12756 Signed-off-by: Alexandre Kühn (aku) Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/models/thread_cache/thread_cache.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'addons/mail/static/src/models/thread_cache') diff --git a/addons/mail/static/src/models/thread_cache/thread_cache.js b/addons/mail/static/src/models/thread_cache/thread_cache.js index c89ded407a3..e6147fd68a0 100644 --- a/addons/mail/static/src/models/thread_cache/thread_cache.js +++ b/addons/mail/static/src/models/thread_cache/thread_cache.js @@ -56,8 +56,8 @@ function factory(dependencies) { args: [domain], kwargs: this._getFetchMessagesKwargs(), }, { shadow: true })); - for (const viewer of this.thread.viewers) { - viewer.addComponentHint('more-messages-loaded'); + for (const threadView of this.thread.threadViews) { + threadView.addComponentHint('more-messages-loaded'); } this._handleMessagesLoaded(messagesData); } @@ -292,8 +292,8 @@ function factory(dependencies) { isLoading: false, isLoadingMore: false, }); - for (const viewer of this.thread.viewers) { - viewer.handleThreadCacheLoaded(this); + for (const threadView of this.thread.threadViews) { + threadView.handleThreadCacheLoaded(this); } } -- cgit v1.2.3