fixes and improvements

This commit is contained in:
2026-05-11 15:45:59 +02:00
parent 019664ac78
commit 7c704fc290
+1 -33
View File
@@ -19,7 +19,7 @@ import {
TextField,
Typography,
} from "@mui/material";
import type { MonitoringMachineInput, SSHKey, SSHKeyInput } from "../types";
import type { MonitoringMachine, MonitoringMachineInput, SSHKey, SSHKeyInput } from "../types";
import {
useDeleteMonitoringMachine,
useDeleteSSHKey,
@@ -839,38 +839,6 @@ function SSHKeyManager({ sshKeys }: { sshKeys: SSHKey[] }) {
</Typography>
</Box>
<Stack direction="row" spacing={1}>
<Button
variant="outlined"
onClick={() =>
openEditMachine({
id: selectedMachine.id,
name: selectedMachine.name,
mode: selectedMachine.mode,
enabled: selectedMachine.enabled,
services: selectedMachine.services,
host: selectedMachine.host,
port: selectedMachine.port,
username: selectedMachine.username,
key_directory: "",
key_name: "",
path_prefix: "",
ssh_key_id: selectedMachine.ssh_key_id,
ssh_private_key: "",
ssh_private_key_passphrase: "",
password: "",
media_root: selectedMachine.media_root,
jellyfin_url: selectedMachine.jellyfin_url,
jellyfin_user_id:
selectedMachine.jellyfin_user_id,
jellyfin_api_key: "",
jellyseerr_url: selectedMachine.jellyseerr_url,
jellyseerr_api_key: "",
notes: selectedMachine.notes,
}, selectedMachine)
}
>
Edit
</Button>
<Button
size="small"
color="error"