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

This commit is contained in:
Dan Ditomaso authored and GitHub committed 2025-07-15 09:08:32 -04:00
1 parent dd3f3f0499
commit 5fb5693792
5 files changed
+154 -14

No files matched your search

@@ -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,