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 <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user