@fluxhub/fluxhub-lib 21.0.17 → 21.0.18

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.
@@ -4704,7 +4704,9 @@ class FHUploadComponent {
4704
4704
  if (event.type === HttpEventType.UploadProgress && event.total) {
4705
4705
  const progress = Math.round(100 * event.loaded / event.total);
4706
4706
  if (this.dialogRef?.componentInstance) {
4707
- this.dialogRef?.componentInstance?.update_progess(progress);
4707
+ // 100 chiude l'attesa: si arriva a 100 solo con la risposta del server (il programma
4708
+ // post-upload, es. rename_attachment, puo' ancora rinominare o spostare il file)
4709
+ this.dialogRef?.componentInstance?.update_progess(Math.min(progress, 99));
4708
4710
  }
4709
4711
  }
4710
4712
  else if (event.type === HttpEventType.Response) {