summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/message/message.js
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-12-02 09:32:47 +0000
committerXavier Dubuc <xdu@odoo.com>2020-12-04 09:43:08 +0000
commit42f923eac4320c6be733dcbc7d269c64d09b4609 (patch)
tree13bdc2dceebe301f173689f6b7127ce0da1267fa /addons/mail/static/src/components/message/message.js
parent329b00365e7b7702eb4923443c99ddac13340ae8 (diff)
[FIX] mail: split attachments list to improve style
There is now two lists of attachments : first one with images and second one with non-images. Attachment viewer allows to navigate through previews of all viewable attachments in the order they're shown. task-2272587 task-2401325 closes odoo/odoo#62866 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/message/message.js')
-rw-r--r--addons/mail/static/src/components/message/message.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/addons/mail/static/src/components/message/message.js b/addons/mail/static/src/components/message/message.js
index 181689dddba..d4cee21e074 100644
--- a/addons/mail/static/src/components/message/message.js
+++ b/addons/mail/static/src/components/message/message.js
@@ -158,13 +158,6 @@ class Message extends Component {
}
/**
- * @returns {mail.attachment[]}
- */
- get imageAttachments() {
- return this.message.attachments.filter(attachment => attachment.fileType === 'image');
- }
-
- /**
* Tell whether the bottom of this message is visible or not.
*
* @param {Object} param0
@@ -211,14 +204,6 @@ class Message extends Component {
get message() {
return this.env.models['mail.message'].get(this.props.messageLocalId);
}
-
- /**
- * @returns {mail.attachment[]}
- */
- get nonImageAttachments() {
- return this.message.attachments.filter(attachment => attachment.fileType !== 'image');
- }
-
/**
* @returns {string}
*/