fixes and improvements
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user