@arsedizioni/ars-utils 21.2.202 → 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.
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +19 -25
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +34 -30
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1 -1
|
@@ -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
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
}
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
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
|
}
|