Files
web/web_notify/static/src/js/services/notification.esm.js
David 6fa8ac48e1 [IMP] web_notify: migration improvements
- Use ES6 in js files
- Update screenshots
- Clean old lint exceptions
- New icon

TT38350
2023-04-11 09:53:03 +02:00

13 lines
338 B
JavaScript

/** @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),
},
});