@arsedizioni/ars-utils 21.2.271 → 21.2.273

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.
@@ -3443,6 +3443,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
3443
3443
 
3444
3444
  class ClipperContactEditComponent {
3445
3445
  constructor() {
3446
+ this.destroyRef = inject(DestroyRef);
3446
3447
  this.clipperService = inject(ClipperService);
3447
3448
  this.dialogService = inject(DialogService);
3448
3449
  this.dialogRef = inject(MatDialogRef);
@@ -3489,7 +3490,7 @@ class ClipperContactEditComponent {
3489
3490
  }
3490
3491
  this.dialogService.busy('Aggiornamento in corso...');
3491
3492
  this.clipperService.saveContact(this.item)
3492
- .pipe(finalize$1(() => this.dialogService.clearBusy()))
3493
+ .pipe(takeUntilDestroyed(this.destroyRef), finalize$1(() => this.dialogService.clearBusy()))
3493
3494
  .subscribe(r => {
3494
3495
  if (!r.success) {
3495
3496
  this.dialogService.error(r.message);
@@ -4326,6 +4327,7 @@ var documentIndex_component = /*#__PURE__*/Object.freeze({
4326
4327
  class ClipperNoteEditComponent {
4327
4328
  constructor() {
4328
4329
  this.done = output();
4330
+ this.destroyRef = inject(DestroyRef);
4329
4331
  this.dialogService = inject(ApplicationDialogService);
4330
4332
  this.dialogData = inject(MAT_DIALOG_DATA);
4331
4333
  this.dialogTitle = signal((this.dialogData.currentItem?.id ?? 0) > 0 ? 'Modifica annotazione' : 'Nuova annotazione', ...(ngDevMode ? [{ debugName: "dialogTitle" }] : /* istanbul ignore next */ []));
@@ -4384,7 +4386,9 @@ class ClipperNoteEditComponent {
4384
4386
  if (this.isNew()) {
4385
4387
  this.item.teamId = this.selectedTeam.value;
4386
4388
  }
4387
- this.clipperService.saveNote(this.item).subscribe(r => {
4389
+ this.clipperService.saveNote(this.item)
4390
+ .pipe(takeUntilDestroyed(this.destroyRef))
4391
+ .subscribe(r => {
4388
4392
  if (!r.success) {
4389
4393
  this.dialogService.error(r.message);
4390
4394
  }