feat: notify and open modal on airtable auth
This commit is contained in:
@@ -59,6 +59,7 @@ export const Recordings = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const authStatus = getAndClearCookie('robot_auth_status');
|
const authStatus = getAndClearCookie('robot_auth_status');
|
||||||
|
const airtableAuthStatus = getAndClearCookie('airtable_auth_status');
|
||||||
const robotId = getAndClearCookie('robot_auth_robotId');
|
const robotId = getAndClearCookie('robot_auth_robotId');
|
||||||
|
|
||||||
if (authStatus === 'success' && robotId) {
|
if (authStatus === 'success' && robotId) {
|
||||||
@@ -66,6 +67,12 @@ export const Recordings = ({
|
|||||||
|
|
||||||
handleNavigate(`/robots/${robotId}/integrate`, robotId, "", []);''
|
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
|
// Determine which modal to open based on the current route
|
||||||
|
|||||||
Reference in New Issue
Block a user