feat: notify and open modal on airtable auth

This commit is contained in:
Rohit
2025-02-26 14:04:53 +05:30
parent 64bb260878
commit d4bb7082da

View File

@@ -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