Browse Source

added reboot to command menu

pull/536/head
Dan Ditomaso 1 year ago
parent
commit
ec7b4528f6
  1. 8
      src/components/CommandPalette.tsx

8
src/components/CommandPalette.tsx

@ -32,6 +32,7 @@ import {
XCircleIcon,
} from "lucide-react";
import { useEffect } from "react";
import { RebootDialog } from "@components/Dialog/RebootDialog.tsx";
export interface Group {
label: string;
@ -172,6 +173,13 @@ export const CommandPalette = () => {
removeDevice(selectedDevice ?? 0);
},
},
{
label: "Reboot",
icon: PowerIcon,
action() {
connection?.reboot(0);
},
},
{
label: "Schedule Shutdown",
icon: PowerIcon,

Loading…
Cancel
Save