Skip to content

Commit

Permalink
[FIX] web_editor: add missing Markup to notification
Browse files Browse the repository at this point in the history
closes odoo#127362

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
  • Loading branch information
SimonGenin committed Jul 19, 2023
1 parent 793f912 commit dd5b18e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ odoo.define('wysiwyg.widgets.ImageCropWidget', function (require) {
const core = require('web.core');
const Widget = require('web.Widget');
const {applyModifications, cropperDataFields, activateCropper, loadImage, loadImageInfo} = require('web_editor.image_processing');
const { Markup } = require('web.utils');

const _t = core._t;

Expand Down Expand Up @@ -62,7 +63,7 @@ const ImageCropWidget = Widget.extend({
this.displayNotification({
type: 'warning',
title: _t("This image is an external image"),
message: _t("This type of image is not supported for cropping.<br/>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.<br/>If you want to crop it, please first download it from the original source and upload it in Odoo.")),
});
return this.destroy();
}
Expand Down

0 comments on commit dd5b18e

Please sign in to comment.