UI: make the same behavior when uploading an image and when importing json
This commit is contained in:
		
							parent
							
								
									407220fa31
								
							
						
					
					
						commit
						6e46c5f2d0
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user