diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-08-28 10:16:37 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-08-28 13:43:54 +0000 |
| commit | f9ee1cf5f904116e4d1d70a8eaf4ee1d58b18a3a (patch) | |
| tree | 89425d0677083bb9489e42d47521c4bcf1e4ff44 /addons/mail/static/src/models/chat_window/chat_window.js | |
| parent | 98e12901c97a67dc87f21647473754cd6f384d4a (diff) | |
[FIX] mail, *: rename thread viewer to thread view
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) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/chat_window/chat_window.js')
| -rw-r--r-- | addons/mail/static/src/models/chat_window/chat_window.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/mail/static/src/models/chat_window/chat_window.js b/addons/mail/static/src/models/chat_window/chat_window.js index 81bf9b65824..ab1aa214750 100644 --- a/addons/mail/static/src/models/chat_window/chat_window.js +++ b/addons/mail/static/src/models/chat_window/chat_window.js @@ -106,7 +106,7 @@ function factory(dependencies) { unfold() { if (this.thread) { this.thread.update({ pendingFoldState: 'open' }); - this.threadViewer.addComponentHint('chat-window-unfolded'); + this.threadView.addComponentHint('chat-window-unfolded'); } else { this.update({ _isFolded: false }); } @@ -237,20 +237,20 @@ function factory(dependencies) { * @private */ async _onHideHomeMenu() { - if (!this.threadViewer) { + if (!this.threadView) { return; } - this.threadViewer.addComponentHint('home-menu-hidden'); + this.threadView.addComponentHint('home-menu-hidden'); } /** * @private */ async _onShowHomeMenu() { - if (!this.threadViewer) { + if (!this.threadView) { return; } - this.threadViewer.addComponentHint('home-menu-shown'); + this.threadView.addComponentHint('home-menu-shown'); } /** @@ -333,7 +333,7 @@ function factory(dependencies) { ], }), thread: many2one('mail.thread', { - related: 'threadViewer.thread', + related: 'threadView.thread', }), threadDisplayName: attr({ related: 'thread.displayName', @@ -341,7 +341,7 @@ function factory(dependencies) { threadFoldState: attr({ related: 'thread.foldState', }), - threadViewer: one2one('mail.thread_viewer', { + threadView: one2one('mail.thread_view', { inverse: 'chatWindow', }), /** |
