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

View File

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

View File

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