[IMP] mail: remove AttachmentViewerComponent/_download

Task-2579306

closes odoo/odoo#87776

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-04-06 13:12:52 +02:00
parent 2cef72a970
commit e72e77ac5e
@@ -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();
}
/**