From 359dd271528335c706a330577eb70aa598b20586 Mon Sep 17 00:00:00 2001 From: Salim Terres Date: Thu, 10 Sep 2026 17:34:42 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20#16819:=20[Collect]=20The=20=E2=80=9CThe?= =?UTF-8?q?=20operation=20is=20in=20progress...=E2=80=9D=20notification=20?= =?UTF-8?q?remains=20displayed=20when=20an=20error=20occurs=20with=20an=20?= =?UTF-8?q?invalid=20CSV.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../update-units-metadata/update-units-metadata.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/ui-frontend/projects/collect/src/app/collect/archive-search-collect/update-units-metadata/update-units-metadata.component.ts b/ui/ui-frontend/projects/collect/src/app/collect/archive-search-collect/update-units-metadata/update-units-metadata.component.ts index 692eeaed29c..a49e788e57f 100644 --- a/ui/ui-frontend/projects/collect/src/app/collect/archive-search-collect/update-units-metadata/update-units-metadata.component.ts +++ b/ui/ui-frontend/projects/collect/src/app/collect/archive-search-collect/update-units-metadata/update-units-metadata.component.ts @@ -77,7 +77,7 @@ export class UpdateUnitsMetadataComponent implements OnDestroy { updateUnitsMetadata() { const fileToUpload = this.fileControl.value[0]; this.isLoadingData = true; - this.snackBarService.open({ + const waitSnackBarRef = this.snackBarService.open({ message: 'COLLECT.UPDATE_UNITS_METADATA.WAIT_MESSAGE', duration: 100_000, }); @@ -96,6 +96,7 @@ export class UpdateUnitsMetadataComponent implements OnDestroy { error: (error: any) => { this.isLoadingData = false; this.dialogRef.close(true); + waitSnackBarRef.then((snackBarRef) => snackBarRef.dismiss()); this.logger.error('Error message :', error); return throwError(error); },