Can select disk bus type when adding new disk to VM
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
20
virtweb_frontend/src/widgets/forms/DiskBusSelect.tsx
Normal file
20
virtweb_frontend/src/widgets/forms/DiskBusSelect.tsx
Normal 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)}
|
||||
/>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user