[FIX] web_editor: correct invalid link notification

Before this commit:

Clicking on invalid link results in a blank and bizarre notification because
we are accessing wrong parameter in wysiwyg.js.

After this commit:

After correcting parameters clicking on an invalid link triggers a notification
displaying an invalid URL message.

task-3563345

closes odoo/odoo#139301

Signed-off-by: Geelen Sébastien (sge) <sge@odoo.com>
This commit is contained in:
visp-odoo
2024-01-26 10:34:59 +00:00
parent 9d76ac17ce
commit afb95a62a8
@@ -658,8 +658,8 @@ export class Wysiwyg extends Component {
target: $target[0],
wysiwyg: this,
container,
notify: (params) => {
this.notification.add(params.message, { type: params.type });
notify: (message, params) => {
this.notification.add(message, { type: params.type });
},
});;
$target.data('popover-widget-initialized', this.linkPopover);