mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-12 20:57:42 +02:00
[eric] v1.0.14: fix 9Router server.js path, disconnect button, onboarding
This commit is contained in:
@@ -306,8 +306,15 @@ const SubscriptionCards: React.FC = () => {
|
||||
};
|
||||
|
||||
const handleDisconnect = async (providerId: string) => {
|
||||
// TODO: implement disconnect via 9Router API
|
||||
fetchStatus();
|
||||
try {
|
||||
await fetch(`${API_BASE}/agents/subscriptions/disconnect`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ provider: providerId }),
|
||||
});
|
||||
} catch {}
|
||||
// Wait briefly for 9Router to process, then refresh
|
||||
setTimeout(fetchStatus, 500);
|
||||
};
|
||||
|
||||
if (!status?.running) {
|
||||
|
||||
Reference in New Issue
Block a user