Skip to content

Commit

Permalink
fix(gui): close save menu after selecting an option
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jul 2, 2023
1 parent d98ecc0 commit b8aef2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui/src/components/card/ImageCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ export function ImageCard(props: ImageCardProps) {

function downloadImage() {
window.open(outputs[index].url, '_blank');
close();
}

function downloadMetadata() {
window.open(outputs[index].url + '.json', '_blank');
close();
}

function close() {
Expand Down

0 comments on commit b8aef2c

Please sign in to comment.