@arsedizioni/ars-utils 22.0.11 → 22.0.13
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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +21 -22
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +12 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +12 -14
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +4 -2
- package/types/arsedizioni-ars-utils-core.d.ts +6 -1
- package/types/arsedizioni-ars-utils-evolution.common.d.ts +2 -1
|
@@ -2451,7 +2451,18 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
2451
2451
|
this.broadcastService.getMessage()
|
|
2452
2452
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2453
2453
|
.subscribe(message => {
|
|
2454
|
-
if (message.id === ClipperMessages.
|
|
2454
|
+
if (message.id === ClipperMessages.ERROR) {
|
|
2455
|
+
this.dialogService.error(message.data?.message ?? "Si è verificato un errore sconosciuto.", "Errore in Clipper");
|
|
2456
|
+
}
|
|
2457
|
+
else if (message.id === ClipperMessages.SUCCESS || message.id === ClipperMessages.SUCCESS_TOAST) {
|
|
2458
|
+
if (message.id === ClipperMessages.SUCCESS) {
|
|
2459
|
+
this.dialogService.info(message.data?.message ?? "Operazione completata con successo.");
|
|
2460
|
+
}
|
|
2461
|
+
else {
|
|
2462
|
+
this.dialogService.toast(message.data?.message ?? "Si è verificato un errore sconosciuto.", message.data?.duration ?? 3000, message.data?.icon ?? 'check');
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
else if (message.id === ClipperMessages.COMMAND_DASHBOARD_UPDATED) {
|
|
2455
2466
|
this.updateModulesUnreadItems();
|
|
2456
2467
|
}
|
|
2457
2468
|
else if (message.id === ClipperMessages.COMMAND_SEARCH_RESTORED) {
|