add some IDs

This commit is contained in:
Mary Hipp 2023-05-18 15:35:36 -04:00 committed by psychedelicious
parent 7025c00581
commit 127b54f812
3 changed files with 9 additions and 1 deletions

View File

@ -417,6 +417,7 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
size="sm"
onClick={handleSendToImageToImage}
leftIcon={<FaShare />}
id="send-to-img2img"
>
{t('parameters.sendToImg2Img')}
</IAIButton>
@ -425,6 +426,7 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
size="sm"
onClick={handleSendToCanvas}
leftIcon={<FaShare />}
id="send-to-canvas"
>
{t('parameters.sendToUnifiedCanvas')}
</IAIButton>

View File

@ -250,11 +250,16 @@ const HoverableImage = memo((props: HoverableImageProps) => {
<MenuItem
icon={<FaShare />}
onClickCapture={handleSendToImageToImage}
id="send-to-img2img"
>
{t('parameters.sendToImg2Img')}
</MenuItem>
{isCanvasEnabled && (
<MenuItem icon={<FaShare />} onClickCapture={handleSendToCanvas}>
<MenuItem
icon={<FaShare />}
onClickCapture={handleSendToCanvas}
id="send-to-canvas"
>
{t('parameters.sendToUnifiedCanvas')}
</MenuItem>
)}

View File

@ -132,6 +132,7 @@ const CancelButton = (
isDisabled={!isConnected || !isProcessing || !isCancelable}
onClick={handleClickCancel}
colorScheme="error"
id="cancel-button"
{...rest}
/>
<Menu closeOnSelect={false}>