diff --git a/packages/web/public/i18n/locales/en/commandPalette.json b/packages/web/public/i18n/locales/en/commandPalette.json index e3f80a3ad..8c267e29f 100644 --- a/packages/web/public/i18n/locales/en/commandPalette.json +++ b/packages/web/public/i18n/locales/en/commandPalette.json @@ -35,6 +35,7 @@ "scheduleShutdown": "Schedule Shutdown", "scheduleReboot": "Reboot Device", "resetNodeDb": "Reset Node DB", + "dfuMode": "Enter DFU Mode", "factoryResetDevice": "Factory Reset Device", "factoryResetConfig": "Factory Reset Config", "disconnect": "Disconnect" diff --git a/packages/web/src/components/CommandPalette/index.tsx b/packages/web/src/components/CommandPalette/index.tsx index 5c9753db8..fc1778623 100644 --- a/packages/web/src/components/CommandPalette/index.tsx +++ b/packages/web/src/components/CommandPalette/index.tsx @@ -19,6 +19,7 @@ import { CloudOff, EraserIcon, FactoryIcon, + HardDriveUpload, LayersIcon, LinkIcon, type LucideIcon, @@ -188,6 +189,13 @@ export const CommandPalette = () => { setDialogOpen("reboot", true); }, }, + { + label: t("contextual.command.dfuMode"), + icon: HardDriveUpload, + action() { + connection?.enterDfuMode() + }, + }, { label: t("contextual.command.resetNodeDb"), icon: TrashIcon,