UI: make the same behavior when uploading an image and when importing json
This commit is contained in:
parent
407220fa31
commit
6e46c5f2d0
@ -596,8 +596,12 @@ export class ImageGalleryComponent extends PageComponent implements OnInit, OnDe
|
|||||||
importImage(): void {
|
importImage(): void {
|
||||||
this.importExportService.importImage().subscribe((image) => {
|
this.importExportService.importImage().subscribe((image) => {
|
||||||
if (image) {
|
if (image) {
|
||||||
|
if (this.selectionMode) {
|
||||||
|
this.imageSelected.next(image);
|
||||||
|
} else {
|
||||||
this.updateData();
|
this.updateData();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user