feat: move robot create modal to page

This commit is contained in:
Rohit Rajan
2025-09-29 16:14:16 +05:30
parent d2e0324312
commit d98531b838
3 changed files with 353 additions and 14 deletions

View File

@@ -278,20 +278,8 @@ export const RecordingsTable = ({
}, [setRecordings, notify, t]);
const handleNewRecording = useCallback(async () => {
const canCreateRecording = await canCreateBrowserInState("recording");
if (!canCreateRecording) {
const activeBrowserId = await getActiveBrowserId();
if (activeBrowserId) {
setActiveBrowserId(activeBrowserId);
setWarningModalOpen(true);
} else {
notify('warning', t('recordingtable.notifications.browser_limit_warning'));
}
} else {
setModalOpen(true);
}
}, []);
navigate('/robots/create');
}, [navigate]);
const notifyRecordingTabsToClose = (browserId: string) => {
const closeMessage = {