Show VM screenshot

This commit is contained in:
2023-10-18 10:23:40 +02:00
parent 62364594c9
commit 3042bbdac6
7 changed files with 82 additions and 4 deletions

View File

@ -6,14 +6,24 @@ import { VMInfo } from "../../api/VMApi";
import { CheckboxInput } from "../forms/CheckboxInput";
import { SelectInput } from "../forms/SelectInput";
import { TextInput } from "../forms/TextInput";
import { VMScreenshot } from "./VMScreenshot";
export function VMDetails(p: {
vm: VMInfo;
editable: boolean;
onChange?: () => void;
screenshot?: boolean;
}): React.ReactElement {
return (
<Grid container spacing={2}>
{
/* Screenshot section */ p.screenshot && (
<EditSection title="Screenshot">
<VMScreenshot vm={p.vm} />
</EditSection>
)
}
{/* Metadata section */}
<EditSection title="Metadata">
<TextInput