feat: added disconnect method to core lib (#712)

This commit is contained in:
Dan Ditomaso
2025-07-15 09:08:32 -04:00
committed by GitHub
parent dd3f3f0499
commit 5fb5693792
5 changed files with 154 additions and 14 deletions
@@ -13,6 +13,7 @@ import {
ArrowLeftRightIcon,
BoxSelectIcon,
BugIcon,
CloudOff,
EraserIcon,
FactoryIcon,
LayersIcon,
@@ -199,6 +200,15 @@ export const CommandPalette = () => {
connection?.resetNodes();
},
},
{
label: t("contextual.command.disconnect"),
icon: CloudOff,
action() {
connection?.disconnect().catch((error) => {
console.error("Failed to disconnect:", error);
});
},
},
{
label: t("contextual.command.factoryResetDevice"),
icon: FactoryIcon,