25 lines
533 B
JavaScript
25 lines
533 B
JavaScript
// Module ES6 pour la gestion des notifications Toastr
|
|
export function notifySuccess(message) {
|
|
toastr.success(message);
|
|
}
|
|
|
|
export function notifyError(message) {
|
|
toastr.error(message);
|
|
}
|
|
|
|
export function notifyInfo(message) {
|
|
toastr.info(message);
|
|
}
|
|
|
|
export function notifyWarning(message) {
|
|
toastr.warning(message);
|
|
}
|
|
|
|
export function configureToastr() {
|
|
toastr.options = {
|
|
"closeButton": true,
|
|
"progressBar": true,
|
|
"positionClass": "toast-top-right",
|
|
"timeOut": "5000"
|
|
};
|
|
}
|