From 331c9619954a528f4f615daa82da4db97b987b21 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 28 Nov 2023 14:44:31 -0500 Subject: [PATCH] fix(striker-ui): identify required fields for input tests in provision server --- striker-ui/components/ProvisionServerDialog.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/striker-ui/components/ProvisionServerDialog.tsx b/striker-ui/components/ProvisionServerDialog.tsx index 7ee264a5..ee355a12 100644 --- a/striker-ui/components/ProvisionServerDialog.tsx +++ b/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 }); },