feat: handle confirmation of pagination settings

This commit is contained in:
karishmas6
2024-08-30 23:59:41 +05:30
parent 0876a8c37e
commit a94ce3a0b2

View File

@@ -129,6 +129,18 @@ export const RightSidePanel = () => {
// updateListStepField(stepId, key, value);
// };
const handleConfirmListCapture = useCallback(() => {
if (!selectedOption) {
setShowListOptions(true);
return;
}
// Proceed to stop capture and emit settings only after option is selected
stopCaptureAndEmitGetListSettings();
setShowListOptions(false); // Reset options display
setSelectedOption(null); // Reset selected option
}, [selectedOption, stopCaptureAndEmitGetListSettings]);
const captureScreenshot = (fullPage: boolean) => {
const screenshotSettings: ScreenshotSettings = {
fullPage,