wip
This commit is contained in:
@@ -142,10 +142,19 @@ export function App() {
|
||||
|
||||
if (result.success && result.sessionId) {
|
||||
setSessionId(result.sessionId);
|
||||
} else {
|
||||
setIsRunning(false);
|
||||
alert(`Failed to start automation: ${result.error}`);
|
||||
return;
|
||||
}
|
||||
|
||||
setIsRunning(false);
|
||||
|
||||
if ((result as any).authRequired) {
|
||||
const nextAuthState = (result as any).authState as AuthState | undefined;
|
||||
setAuthState(nextAuthState ?? 'EXPIRED');
|
||||
setAuthError(result.error ?? 'Authentication required before starting automation.');
|
||||
return;
|
||||
}
|
||||
|
||||
alert(`Failed to start automation: ${result.error}`);
|
||||
};
|
||||
|
||||
const handleStopAutomation = async () => {
|
||||
|
||||
Reference in New Issue
Block a user