diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index 8c810935..9769a611 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -280,6 +280,24 @@ export default function Dashboard() { } }; + const handleLinkProvider = async (provider: ProviderKey) => { + setConnectionAction(`${provider}-link`); + try { + await linkProvider(provider); + } finally { + setConnectionAction(null); + } + }; + + const handleUnlinkProvider = async (provider: ProviderKey) => { + setConnectionAction(`${provider}-unlink`); + try { + await unlinkProvider(provider); + } finally { + setConnectionAction(null); + } + }; + const handleQuickAction = async (actionTitle: string) => { switch (actionTitle) { case "Start New Project":