mirror of https://github.com/OCA/web.git
[ADD] show message under html format
parent
28b8e6d4a6
commit
f099779fc8
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue