Browse Source

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

pull/9818/head
Igor Kulikov 3 years ago
parent
commit
6e46c5f2d0
  1. 6
      ui-ngx/src/app/shared/components/image/image-gallery.component.ts

6
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();
}
}
});
}

Loading…
Cancel
Save