Can select disk bus type when adding new disk to VM
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-05-31 08:52:07 +02:00
parent 22416badcf
commit c7cc15d8d0
5 changed files with 59 additions and 4 deletions

View File

@ -0,0 +1,20 @@
import { DiskBusType } from "../../api/VMApi";
import { SelectInput } from "./SelectInput";
export function DiskBusSelect(p: {
editable: boolean;
value: DiskBusType;
onValueChange: (value: DiskBusType) => void;
}): React.ReactElement {
return (
<SelectInput
{...p}
label="Disk bus type"
options={[
{ label: "virtio", value: "Virtio" },
{ label: "sata", value: "Sata" },
]}
onValueChange={(v) => p.onValueChange(v as any)}
/>
);
}