Show VM screenshot
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user