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/components/chat_window | |
| 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/components/chat_window')
3 files changed, 5 insertions, 5 deletions
diff --git a/addons/mail/static/src/components/chat_window/chat_window.js b/addons/mail/static/src/components/chat_window/chat_window.js index 7424e32ec08..4652da4975b 100644 --- a/addons/mail/static/src/components/chat_window/chat_window.js +++ b/addons/mail/static/src/components/chat_window/chat_window.js @@ -4,7 +4,7 @@ odoo.define('mail/static/src/components/chat_window/chat_window.js', function (r const components = { AutocompleteInput: require('mail/static/src/components/autocomplete_input/autocomplete_input.js'), ChatWindowHeader: require('mail/static/src/components/chat_window_header/chat_window_header.js'), - ThreadViewer: require('mail/static/src/components/thread_viewer/thread_viewer.js'), + ThreadView: require('mail/static/src/components/thread_view/thread_view.js'), }; const useStore = require('mail/static/src/component_hooks/use_store/use_store.js'); const { isEventHandled } = require('mail/static/src/utils/utils.js'); @@ -134,7 +134,7 @@ class ChatWindow extends Component { * @private */ _saveThreadScrollTop() { - this.chatWindow.threadViewer.saveThreadCacheScrollPositionsAsInitial( + this.chatWindow.threadView.saveThreadCacheScrollPositionsAsInitial( this._threadRef.comp.getScrollTop() ); } diff --git a/addons/mail/static/src/components/chat_window/chat_window.scss b/addons/mail/static/src/components/chat_window/chat_window.scss index 299da88575e..eb4d9bca14f 100644 --- a/addons/mail/static/src/components/chat_window/chat_window.scss +++ b/addons/mail/static/src/components/chat_window/chat_window.scss @@ -88,7 +88,7 @@ border: 1px solid gray('300'); // cancel firefox border on input focus } -.o_ChatWindow_thread .o_ThreadViewer_messageList { +.o_ChatWindow_thread .o_ThreadView_messageList { font-size: 1rem; } diff --git a/addons/mail/static/src/components/chat_window/chat_window.xml b/addons/mail/static/src/components/chat_window/chat_window.xml index 76ea5005991..d711f267ac7 100644 --- a/addons/mail/static/src/components/chat_window/chat_window.xml +++ b/addons/mail/static/src/components/chat_window/chat_window.xml @@ -22,7 +22,7 @@ /> <t t-if="!chatWindow.isFolded"> <t t-if="chatWindow.thread"> - <ThreadViewer + <ThreadView class="o_ChatWindow_thread" composerAttachmentsDetailsMode="'card'" hasComposer="chatWindow.thread.model !== 'mail.box' and (!chatWindow.thread.mass_mailing or env.messaging.device.isMobile)" @@ -30,7 +30,7 @@ hasComposerSendButton="env.messaging.device.isMobile" hasSquashCloseMessages="chatWindow.thread.model !== 'mail.box'" haveMessagesAuthorRedirect="chatWindow.thread.channel_type !== 'chat'" - threadViewerLocalId="chatWindow.threadViewer.localId" + threadViewLocalId="chatWindow.threadView.localId" t-on-focusin="_onFocusinThread" t-ref="thread" /> |
