mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[ADD] show message under html format
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
/** @odoo-module **/
|
/** @odoo-module **/
|
||||||
|
import {Markup} from "web.utils";
|
||||||
import {browser} from "@web/core/browser/browser";
|
import {browser} from "@web/core/browser/browser";
|
||||||
import {registry} from "@web/core/registry";
|
import {registry} from "@web/core/registry";
|
||||||
|
|
||||||
@@ -19,7 +20,7 @@ export const webNotificationService = {
|
|||||||
|
|
||||||
notifications.forEach(function (notif) {
|
notifications.forEach(function (notif) {
|
||||||
browser.setTimeout(function () {
|
browser.setTimeout(function () {
|
||||||
notification.add(notif.message, {
|
notification.add(Markup(notif.message), {
|
||||||
title: notif.title,
|
title: notif.title,
|
||||||
type: notif.type,
|
type: notif.type,
|
||||||
sticky: notif.sticky,
|
sticky: notif.sticky,
|
||||||
|
|||||||
Reference in New Issue
Block a user