From e72e77ac5eff85d9d04ca8d405aab8e510d9ba68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Fri, 1 Apr 2022 13:39:28 +0000 Subject: [PATCH] [IMP] mail: remove AttachmentViewerComponent/_download MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-2579306 closes odoo/odoo#87776 Signed-off-by: Alexandre Kühn (aku) --- .../components/attachment_viewer/attachment_viewer.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js index 9e9c0772b60..7cab8501f35 100644 --- a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js +++ b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js @@ -95,15 +95,6 @@ export class AttachmentViewer extends Component { this.attachmentViewer.delete(); } - /** - * Download the attachment. - * - * @private - */ - _download() { - this.attachmentViewer.attachment.download(); - } - /** * Determine whether the current image is rendered for the 1st time, and if * that's the case, display a spinner until loaded. @@ -320,7 +311,7 @@ export class AttachmentViewer extends Component { */ _onClickDownload(ev) { ev.stopPropagation(); - this._download(); + this.attachmentViewer.attachment.download(); } /**