Files
web/web_notify/static/src/js/services/notification.esm.js
2024-10-14 08:54:19 +07:00

12 lines
312 B
JavaScript

import {Notification} from "@web/core/notifications/notification";
import {patch} from "@web/core/utils/patch";
patch(Notification.props, {
type: {
type: String,
optional: true,
validate: (t) =>
["warning", "danger", "success", "info", "default"].includes(t),
},
});