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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
9 additions and
0 deletions
-
packages/web/public/i18n/locales/en/commandPalette.json
-
packages/web/src/components/CommandPalette/index.tsx
|
|
@ -35,6 +35,7 @@ |
|
|
"scheduleShutdown": "Schedule Shutdown", |
|
|
"scheduleShutdown": "Schedule Shutdown", |
|
|
"scheduleReboot": "Reboot Device", |
|
|
"scheduleReboot": "Reboot Device", |
|
|
"resetNodeDb": "Reset Node DB", |
|
|
"resetNodeDb": "Reset Node DB", |
|
|
|
|
|
"dfuMode": "Enter DFU Mode", |
|
|
"factoryResetDevice": "Factory Reset Device", |
|
|
"factoryResetDevice": "Factory Reset Device", |
|
|
"factoryResetConfig": "Factory Reset Config", |
|
|
"factoryResetConfig": "Factory Reset Config", |
|
|
"disconnect": "Disconnect" |
|
|
"disconnect": "Disconnect" |
|
|
|
|
|
@ -19,6 +19,7 @@ import { |
|
|
CloudOff, |
|
|
CloudOff, |
|
|
EraserIcon, |
|
|
EraserIcon, |
|
|
FactoryIcon, |
|
|
FactoryIcon, |
|
|
|
|
|
HardDriveUpload, |
|
|
LayersIcon, |
|
|
LayersIcon, |
|
|
LinkIcon, |
|
|
LinkIcon, |
|
|
type LucideIcon, |
|
|
type LucideIcon, |
|
|
@ -188,6 +189,13 @@ export const CommandPalette = () => { |
|
|
setDialogOpen("reboot", true); |
|
|
setDialogOpen("reboot", true); |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: t("contextual.command.dfuMode"), |
|
|
|
|
|
icon: HardDriveUpload, |
|
|
|
|
|
action() { |
|
|
|
|
|
connection?.enterDfuMode() |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: t("contextual.command.resetNodeDb"), |
|
|
label: t("contextual.command.resetNodeDb"), |
|
|
icon: TrashIcon, |
|
|
icon: TrashIcon, |
|
|
|