mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-14 09:51:27 -06:00
[IMP] document_page_partner: pre-commit auto fixes
This commit is contained in:
parent
9b7dec58e7
commit
bd2584ab3d
@ -1,9 +1,9 @@
|
|||||||
/** @odoo-module **/
|
/** @odoo-module **/
|
||||||
|
|
||||||
|
import {AttachmentList} from "@mail/core/common/attachment_list";
|
||||||
import {Chatter} from "@mail/core/web/chatter";
|
import {Chatter} from "@mail/core/web/chatter";
|
||||||
import {patch} from "@web/core/utils/patch";
|
import {patch} from "@web/core/utils/patch";
|
||||||
import {url} from "@web/core/utils/urls";
|
import {url} from "@web/core/utils/urls";
|
||||||
import {AttachmentList} from "@mail/core/common/attachment_list";
|
|
||||||
|
|
||||||
patch(Chatter.prototype, {
|
patch(Chatter.prototype, {
|
||||||
_onAddUrl(event) {
|
_onAddUrl(event) {
|
||||||
@ -50,11 +50,12 @@ patch(AttachmentList.prototype, {
|
|||||||
* Return the url of the attachment. Temporary attachments, a.k.a. uploading
|
* Return the url of the attachment. Temporary attachments, a.k.a. uploading
|
||||||
* attachments, do not have an url.
|
* attachments, do not have an url.
|
||||||
*
|
*
|
||||||
|
* @param {Object} attachment
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
canDownload(attachment) {
|
canDownload(attachment) {
|
||||||
return (
|
return (
|
||||||
super.canDownload(attachment) && attachment.mimetype != "application/link"
|
super.canDownload(attachment) && attachment.mimetype !== "application/link"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
get attachmentUrl() {
|
get attachmentUrl() {
|
||||||
|
Loading…
Reference in New Issue
Block a user