[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:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user