feat: show user selection is happenning

This commit is contained in:
karishmas6
2024-09-01 22:53:32 +05:30
parent 093fa2d202
commit a128c150cc

View File

@@ -225,15 +225,17 @@ export const RightSidePanel = () => {
</Box> </Box>
)} )}
{showPaginationSelector && ( {showPaginationSelector && (
<Box display="flex" flexDirection="column" gap={2} style={{ margin: '15px' }}> <Box display="flex" flexDirection="column" gap={2} style={{ margin: '15px' }}>
<Typography>Please select the pagination element on the page</Typography> <Typography>Please select the pagination element on the page</Typography>
<Button variant="contained" onClick={handleStartPaginationSelection}>Start Selection</Button> <Button variant="contained" onClick={handleStartPaginationSelection} disabled={isSelectingPagination}>
{paginationSelector && ( {isSelectingPagination ? 'Selecting...' : 'Start Selection'}
<Typography>Selected pagination element: {paginationSelector}</Typography> </Button>
)} {paginationSelector && (
</Box> <Typography>Selected pagination element: {paginationSelector}</Typography>
)} )}
</Box>
)}
{!getText && !getScreenshot && !getList && <Button variant="contained" onClick={startGetText}>Capture Text</Button>} {!getText && !getScreenshot && !getList && <Button variant="contained" onClick={startGetText}>Capture Text</Button>}
{getText && {getText &&