From 6e46c5f2d007869cf9881825d550ba7447bbdab3 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Mon, 11 Dec 2023 13:18:22 +0200 Subject: [PATCH] UI: make the same behavior when uploading an image and when importing json --- .../app/shared/components/image/image-gallery.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/shared/components/image/image-gallery.component.ts b/ui-ngx/src/app/shared/components/image/image-gallery.component.ts index 7d76c6bde8..652c9dc214 100644 --- a/ui-ngx/src/app/shared/components/image/image-gallery.component.ts +++ b/ui-ngx/src/app/shared/components/image/image-gallery.component.ts @@ -596,7 +596,11 @@ export class ImageGalleryComponent extends PageComponent implements OnInit, OnDe importImage(): void { this.importExportService.importImage().subscribe((image) => { if (image) { - this.updateData(); + if (this.selectionMode) { + this.imageSelected.next(image); + } else { + this.updateData(); + } } }); }