fix(striker-ui): identify required fields for input tests in provision server

main
Tsu-ba-me 1 year ago
parent d89f687e85
commit 331c961995
  1. 8
      striker-ui/components/ProvisionServerDialog.tsx

@ -1007,6 +1007,7 @@ const ProvisionServerDialog = ({
},
value: inputServerNameValue,
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -1051,6 +1052,7 @@ const ProvisionServerDialog = ({
},
value: inputCPUCoresValue,
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -1083,6 +1085,7 @@ const ProvisionServerDialog = ({
},
value: memory,
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -1108,6 +1111,7 @@ const ProvisionServerDialog = ({
},
value: inputInstallISOFileUUID,
},
isRequired: true,
tests: [{ test: testNotBlank }],
},
anvil: {
@ -1117,6 +1121,7 @@ const ProvisionServerDialog = ({
},
value: inputAnvilValue,
},
isRequired: true,
tests: [{ test: testNotBlank }],
},
optimizeForOS: {
@ -1126,6 +1131,7 @@ const ProvisionServerDialog = ({
},
value: inputOptimizeForOSValue?.key,
},
isRequired: true,
tests: [{ test: testNotBlank }],
},
};
@ -1141,6 +1147,7 @@ const ProvisionServerDialog = ({
},
value: virtualDisks.sizes[vdIndex],
},
isRequired: true,
onFinishBatch: () => {
setVirtualDisks({ ...virtualDisks });
},
@ -1173,6 +1180,7 @@ const ProvisionServerDialog = ({
},
value: virtualDisks.inputStorageGroupUUIDs[vdIndex],
},
isRequired: true,
onFinishBatch: () => {
setVirtualDisks({ ...virtualDisks });
},

Loading…
Cancel
Save