UI: make the same behavior when uploading an image and when importing json

This commit is contained in:
Igor Kulikov 2023-12-11 13:18:22 +02:00
parent 407220fa31
commit 6e46c5f2d0

View File

@ -596,8 +596,12 @@ export class ImageGalleryComponent extends PageComponent implements OnInit, OnDe
importImage(): void {
this.importExportService.importImage().subscribe((image) => {
if (image) {
if (this.selectionMode) {
this.imageSelected.next(image);
} else {
this.updateData();
}
}
});
}