feat: emit socket events for stopping
This commit is contained in:
@@ -107,6 +107,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
|
|||||||
setLimitType('');
|
setLimitType('');
|
||||||
setCustomLimit('');
|
setCustomLimit('');
|
||||||
setCaptureStage('complete');
|
setCaptureStage('complete');
|
||||||
|
socket?.emit('setGetList', { getList: false });
|
||||||
} else if (action === 'screenshot') {
|
} else if (action === 'screenshot') {
|
||||||
setGetScreenshot(false);
|
setGetScreenshot(false);
|
||||||
}
|
}
|
||||||
@@ -123,7 +124,10 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
|
|||||||
socket?.emit('setPaginationMode', { pagination: true });
|
socket?.emit('setPaginationMode', { pagination: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
const stopPaginationMode = () => setPaginationMode(false);
|
const stopPaginationMode = () => {
|
||||||
|
setPaginationMode(false),
|
||||||
|
socket?.emit('setPaginationMode', { pagination: false });
|
||||||
|
};
|
||||||
|
|
||||||
const startLimitMode = () => {
|
const startLimitMode = () => {
|
||||||
setLimitMode(true);
|
setLimitMode(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user