From 9124ca0ab026bfbb4294b27112036544b8c97877 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 5 Sep 2024 22:44:25 +0530 Subject: [PATCH] feat: start pagination after list capture --- src/components/organisms/RightSidePanel.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index 332a1a70..0b2cbce9 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -26,7 +26,7 @@ export const RightSidePanel = () => { const [selectedPaginationSetting, setSelectedPaginationSetting] = useState(null); const { lastAction, notify } = useGlobalInfoStore(); - const { getText, startGetText, stopGetText, getScreenshot, startGetScreenshot, stopGetScreenshot, getList, startGetList, stopGetList } = useActionContext(); + const { getText, startGetText, stopGetText, getScreenshot, startGetScreenshot, stopGetScreenshot, paginationMode, getList, startGetList, stopGetList, startPaginationMode } = useActionContext(); const { browserSteps, updateBrowserTextStepLabel, deleteBrowserStep, addScreenshotStep } = useBrowserSteps(); const { socket } = useSocketStore(); @@ -143,6 +143,9 @@ export const RightSidePanel = () => { }, [stopGetList, getListSettingsObject, socket, notify, handleStopGetList]); const handleConfirmListCapture = useCallback(() => { + if (!paginationMode) { + startPaginationMode(); + } if (!selectedPaginationSetting) { setShowPaginationOptions(true); return;