From 18edb4abf49c5367f784adea0e8e47cd383b631b Mon Sep 17 00:00:00 2001 From: Rahul Prajapati Date: Tue, 29 Mar 2022 13:19:53 +0000 Subject: [PATCH] [IMP] mail: cleanup iseditable in attachments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit: - isEditable field doesn't makes sense as attachments can't be Edited - There is a Dead code in attachment_card component After this commit: - refactored isEditable to isDeletable - removed the Dead code Task-2782079 closes odoo/odoo#87654 Signed-off-by: Alexandre Kühn (aku) --- .../attachment_card/attachment_card.xml | 54 +++++++++---------- .../attachment_image/attachment_image.xml | 2 +- addons/mail/static/src/models/attachment.js | 10 ++-- 3 files changed, 32 insertions(+), 34 deletions(-) diff --git a/addons/mail/static/src/components/attachment_card/attachment_card.xml b/addons/mail/static/src/components/attachment_card/attachment_card.xml index 96b0b3a02f2..665405195a1 100644 --- a/addons/mail/static/src/components/attachment_card/attachment_card.xml +++ b/addons/mail/static/src/components/attachment_card/attachment_card.xml @@ -28,34 +28,32 @@ - -
- - -
- -
-
- - -
- -
-
- - - - - - - - -
-
+
+ + +
+ +
+
+ + +
+ +
+
+ + + + + + + + +
diff --git a/addons/mail/static/src/components/attachment_image/attachment_image.xml b/addons/mail/static/src/components/attachment_image/attachment_image.xml index 486668cc8e4..65643900d17 100644 --- a/addons/mail/static/src/components/attachment_image/attachment_image.xml +++ b/addons/mail/static/src/components/attachment_image/attachment_image.xml @@ -20,7 +20,7 @@ - +