mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_notify: Migrated in v17
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user