diff options
| author | Prakash Prajapati <ppr@odoo.com> | 2019-02-22 09:32:03 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2019-04-15 11:28:03 +0000 |
| commit | 5a310619cba4c6eacc5d70f2dc2450f4a4403240 (patch) | |
| tree | 558c01f80257bba220c3e10bdb89e89bb21cd07b /addons/mail/static/src/js/thread_windows/abstract_thread_window.js | |
| parent | aa5faae41c6e881f6410349d2f11f40819fcc7bb (diff) | |
[IMP] mail: improve document chat window
1. In the systray messaging menu, when hovering on a notification
linked to a document chat, it now shows an "expand" icon. Clicking
on icon opens the corresponding form view with the chatter.
2. Messages in a document chat window no longer show linked document
in their header, as this is redundant with title of chat window.
3. Font size of words "on" and "from" in header of message in chat
windows have been reduced in order to closely match font size of
document link.
Task-ID 1929169
closes odoo/odoo#30957
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js/thread_windows/abstract_thread_window.js')
| -rw-r--r-- | addons/mail/static/src/js/thread_windows/abstract_thread_window.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/addons/mail/static/src/js/thread_windows/abstract_thread_window.js b/addons/mail/static/src/js/thread_windows/abstract_thread_window.js index 7a38d337f24..f09b78b8d3f 100644 --- a/addons/mail/static/src/js/thread_windows/abstract_thread_window.js +++ b/addons/mail/static/src/js/thread_windows/abstract_thread_window.js @@ -77,11 +77,14 @@ var AbstractThreadWindow = Widget.extend({ var self = this; this.$input = this.$('.o_composer_text_field'); this.$header = this.$('.o_thread_window_header'); - - this._threadWidget = new ThreadWidget(this, { - displayMarkAsRead: false, - displayStars: this.options.displayStars, - }); + var options = { + displayMarkAsRead: false, + displayStars: this.options.displayStars, + }; + if (this._thread && this._thread._type === 'document_thread') { + options.displayDocumentLinks = false; + } + this._threadWidget = new ThreadWidget(this, options); // animate the (un)folding of thread windows this.$el.css({transition: 'height ' + this.FOLD_ANIMATION_DURATION + 'ms linear'}); |
