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.
@@ -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('MECX-ALERTS.WARNING');
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: 'warning',
3640
+ type,
3641
3641
  duration: duration || 4000,
3642
3642
  horizontalPosition: 'center',
3643
3643
  verticalPosition: 'top'