Fix issues with the handling of VM creation
This commit is contained in:
parent
f5f4239337
commit
9a15fb4f60
@ -10,6 +10,7 @@ import { VMDetails } from "../widgets/vms/VMDetails";
|
||||
|
||||
export function CreateVMRoute(): React.ReactElement {
|
||||
const snackbar = useSnackbar();
|
||||
const alert = useAlert();
|
||||
const navigate = useNavigate();
|
||||
|
||||
const [vm] = React.useState(VMInfo.NewEmpty);
|
||||
|
@ -60,6 +60,7 @@ function VMDetailsInner(
|
||||
p.vm.name = v ?? "";
|
||||
p.onChange?.();
|
||||
}}
|
||||
checkValue={(v) => /^[a-zA-Z0-9]+$/.test(v)}
|
||||
size={ServerApi.Config.constraints.name_size}
|
||||
/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user