[MIG] web_notify: Migrated in v17

This commit is contained in:
Nikul-OSI
2024-02-16 16:30:37 +05:30
committed by trisdoan
parent decbb9173f
commit 51412c2cc8
7 changed files with 25 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
/** @odoo-module */
import {Notification} from "@web/core/notifications/notification";
import {patch} from "web.utils";
import {patch} from "@web/core/utils/patch";
patch(Notification.props, "webNotifyProps", {
patch(Notification.props, {
type: {
type: String,
optional: true,

View File

@@ -1,5 +1,6 @@
/** @odoo-module **/
import {Markup} from "web.utils";
import {markup} from "@odoo/owl";
import {browser} from "@web/core/browser/browser";
import {registry} from "@web/core/registry";
@@ -34,7 +35,7 @@ export const webNotificationService = {
},
];
}
const notificationRemove = notification.add(Markup(notif.message), {
const notificationRemove = notification.add(markup(notif.message), {
title: notif.title,
type: notif.type,
sticky: notif.sticky,