@arsedizioni/ars-utils 18.2.158 → 18.2.160
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/clipper.common/common/definitions.d.ts +3 -3
- package/clipper.common/common/services/clipper.service.d.ts +5 -6
- package/clipper.ui/ui/document-menu/document-menu.component.d.ts +1 -1
- package/esm2022/clipper.common/common/definitions.mjs +1 -1
- package/esm2022/clipper.common/common/services/clipper.service.mjs +36 -33
- package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +9 -11
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +35 -32
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +8 -10
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -645,16 +645,14 @@ class ClipperDocumentManager {
|
|
|
645
645
|
d.componentInstance.delete
|
|
646
646
|
.subscribe((r) => {
|
|
647
647
|
var item = r.selectedItems[0].bag;
|
|
648
|
-
this.clipperService.removeFromBag(item.documentId).
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
return;
|
|
657
|
-
}
|
|
648
|
+
this.clipperService.removeFromBag(item.documentId).add(() => {
|
|
649
|
+
this.dialogService.toast('Operazione completata con successo.');
|
|
650
|
+
for (let p = 0; p < r.items.length; p++) {
|
|
651
|
+
if (r.items[p].bag.DocumentId === item.DocumentId) {
|
|
652
|
+
r.items.splice(p, 1);
|
|
653
|
+
if (r.items.length === 0)
|
|
654
|
+
d.close();
|
|
655
|
+
return;
|
|
658
656
|
}
|
|
659
657
|
}
|
|
660
658
|
});
|