Add link/unlink handlers
cgen-ce743419b46b46339f2974fb53784ad9
This commit is contained in:
parent
e896438f46
commit
f1d3631cdd
1 changed files with 18 additions and 0 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue