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(); } /**