monkey-front-core 0.0.245 → 0.0.247
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/services/alerts/monkeyecx-alerts.service.mjs +4 -4
- package/fesm2015/monkey-front-core.mjs +3 -3
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +3 -3
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/alerts/monkeyecx-alerts.service.d.ts +2 -1
- package/monkey-front-core-0.0.247.tgz +0 -0
- package/package.json +3 -3
- package/monkey-front-core-0.0.245.tgz +0 -0
|
@@ -3632,12 +3632,12 @@ class MonkeyEcxAlertsService {
|
|
|
3632
3632
|
this.translateService = translateService;
|
|
3633
3633
|
// not to do
|
|
3634
3634
|
}
|
|
3635
|
-
showWarning({ title, message, duration }) {
|
|
3636
|
-
const i18n = this.translateService.instant(
|
|
3635
|
+
showWarning({ type = 'warning', title, message, duration }) {
|
|
3636
|
+
const i18n = this.translateService.instant(`MECX-ALERTS.${type}`.toUpperCase());
|
|
3637
3637
|
this.snackbarService.show({
|
|
3638
3638
|
title: i18n?.TITLES?.[title],
|
|
3639
3639
|
message: i18n?.MESSAGES[message],
|
|
3640
|
-
type
|
|
3640
|
+
type,
|
|
3641
3641
|
duration: duration || 4000,
|
|
3642
3642
|
horizontalPosition: 'center',
|
|
3643
3643
|
verticalPosition: 'top'
|