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

TT38350
2023-01-05 16:40:07 +01: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),
},
});