From d4bb7082da7463fa91fe849f8ad913e2d759bc5e Mon Sep 17 00:00:00 2001 From: Rohit Date: Wed, 26 Feb 2025 14:04:53 +0530 Subject: [PATCH] feat: notify and open modal on airtable auth --- src/components/robot/Recordings.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/robot/Recordings.tsx b/src/components/robot/Recordings.tsx index e63f5e1c..62923cf5 100644 --- a/src/components/robot/Recordings.tsx +++ b/src/components/robot/Recordings.tsx @@ -59,6 +59,7 @@ export const Recordings = ({ }; const authStatus = getAndClearCookie('robot_auth_status'); + const airtableAuthStatus = getAndClearCookie('airtable_auth_status'); const robotId = getAndClearCookie('robot_auth_robotId'); if (authStatus === 'success' && robotId) { @@ -66,6 +67,12 @@ export const Recordings = ({ handleNavigate(`/robots/${robotId}/integrate`, robotId, "", []);'' } + + if (airtableAuthStatus === 'success' && robotId) { + notify(airtableAuthStatus, t("recordingtable.notifications.auth_success")); + + handleNavigate(`/robots/${robotId}/integrate`, robotId, "", []);'' + } }, []); // Determine which modal to open based on the current route