fix(ui): ensure download image opens in new tab

This commit is contained in:
psychedelicious 2023-05-30 23:19:28 +10:00 committed by Kent Keirsey
parent 6e60f7517b
commit 877959b413

View File

@ -461,7 +461,11 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
{t('parameters.copyImageToLink')}
</IAIButton>
<Link download={true} href={getUrl(image?.image_url ?? '')}>
<Link
download={true}
href={getUrl(image?.image_url ?? '')}
target="_blank"
>
<IAIButton leftIcon={<FaDownload />} size="sm" w="100%">
{t('parameters.downloadImage')}
</IAIButton>