@arsedizioni/ars-utils 21.2.203 → 21.2.204

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.
@@ -3008,32 +3008,26 @@ class ClipperPropertyBadgeComponent {
3008
3008
  event.stopPropagation();
3009
3009
  this.dialogService.confirm('Vuoi inviare nuovamente le email associate a questa annotazione?', 'Attenzione!')?.componentInstance.choosen.subscribe((data) => {
3010
3010
  if (data.result === 'ok') {
3011
- const recipients = [];
3012
3011
  this.dialogService.busy('Invio in corso...');
3013
- this.property().trackings?.forEach(t => {
3014
- if (t.email && recipients.indexOf(t.email) === -1) {
3015
- recipients.push(t.email);
3016
- const params = {
3017
- notifyIfNotOpen: notifyIfNotOpen,
3018
- userPropertyId: this.property().id ?? 0,
3019
- };
3020
- this.clipperService.notifyPropertyTo(params)
3021
- .pipe(finalize(() => this.dialogService.clearBusy()))
3022
- .subscribe(r => {
3023
- if (!r.success) {
3024
- this.dialogService.error(r.message);
3025
- return;
3026
- }
3027
- else {
3028
- if (r.value.updated > 0) {
3029
- this.property.update(t => ({ ...t, trackings: r.value.items }));
3030
- this.dialogService.toast('Invio completato con successo.');
3031
- }
3032
- else {
3033
- this.dialogService.toast('Non è stato necessario inviare alcun email.');
3034
- }
3035
- }
3036
- });
3012
+ const params = {
3013
+ notifyIfNotOpen: notifyIfNotOpen,
3014
+ userPropertyId: this.property().id ?? 0,
3015
+ };
3016
+ this.clipperService.notifyPropertyTo(params)
3017
+ .pipe(finalize(() => this.dialogService.clearBusy()))
3018
+ .subscribe(r => {
3019
+ if (!r.success) {
3020
+ this.dialogService.error(r.message);
3021
+ return;
3022
+ }
3023
+ else {
3024
+ if (r.value.updated > 0) {
3025
+ this.property.update(t => ({ ...t, trackings: r.value.items }));
3026
+ this.dialogService.toast('Invio completato con successo.');
3027
+ }
3028
+ else {
3029
+ this.dialogService.toast('Non è stato necessario inviare alcun email.');
3030
+ }
3037
3031
  }
3038
3032
  });
3039
3033
  }