feat: handle confirmation of pagination settings
This commit is contained in:
@@ -129,6 +129,18 @@ export const RightSidePanel = () => {
|
|||||||
// updateListStepField(stepId, key, value);
|
// 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 captureScreenshot = (fullPage: boolean) => {
|
||||||
const screenshotSettings: ScreenshotSettings = {
|
const screenshotSettings: ScreenshotSettings = {
|
||||||
fullPage,
|
fullPage,
|
||||||
|
|||||||
Reference in New Issue
Block a user