Browse Source

Add DFU mode to command menu (#781)

* feat: add dfu mode to command menu

* Update packages/web/src/components/CommandPalette/index.tsx

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
pull/784/head
Dan Ditomaso 11 months ago
committed by GitHub
parent
commit
ee1758a548
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      packages/web/public/i18n/locales/en/commandPalette.json
  2. 8
      packages/web/src/components/CommandPalette/index.tsx

1
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"

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

Loading…
Cancel
Save