From 20764d40f8e860fd6b25fc30ee30b64ea7a8f2ba Mon Sep 17 00:00:00 2001 From: "Simon Genin (ges)" Date: Wed, 5 Jul 2023 08:23:16 +0000 Subject: [PATCH] [FIX] web_editor: add missing Markup to notification closes odoo/odoo#129681 X-original-commit: c72441b440061dd1ab794a77bf5b2c2623c525fe Signed-off-by: David Monjoie (dmo) Signed-off-by: Simon Genin (ges@odoo) --- addons/web_editor/static/src/js/wysiwyg/widgets/image_crop.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/widgets/image_crop.js b/addons/web_editor/static/src/js/wysiwyg/widgets/image_crop.js index 3b086a6338f..c79d8ea52d2 100644 --- a/addons/web_editor/static/src/js/wysiwyg/widgets/image_crop.js +++ b/addons/web_editor/static/src/js/wysiwyg/widgets/image_crop.js @@ -10,6 +10,7 @@ import { onWillDestroy, onWillUpdateProps, } from "@odoo/owl"; +import { Markup } from "web.utils"; export class ImageCrop extends Component { static template = 'web_editor.ImageCrop'; @@ -135,7 +136,7 @@ export class ImageCrop extends Component { this.displayNotification({ type: 'warning', title: _t("This image is an external image"), - message: _t("This type of image is not supported for cropping.
If you want to crop it, please first download it from the original source and upload it in Odoo."), + message: Markup(_t("This type of image is not supported for cropping.
If you want to crop it, please first download it from the original source and upload it in Odoo.")), }); return this._closeCropper(); }