mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_notify: migration improvements
- Use ES6 in js files - Update screenshots - Clean old lint exceptions - New icon TT38350
This commit is contained in:
12
web_notify/static/src/js/services/notification.esm.js
Normal file
12
web_notify/static/src/js/services/notification.esm.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/** @odoo-module */
|
||||
import {Notification} from "@web/core/notifications/notification";
|
||||
import {patch} from "web.utils";
|
||||
|
||||
patch(Notification.props, "webNotifyProps", {
|
||||
type: {
|
||||
type: String,
|
||||
optional: true,
|
||||
validate: (t) =>
|
||||
["warning", "danger", "success", "info", "default"].includes(t),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user