fix(striker-ui): mark necessary fields as required in general, network init forms

main
Tsu-ba-me 9 months ago
parent a6e29c2b0c
commit c22bc3ed29
  1. 7
      striker-ui/components/GeneralInitForm.tsx
  2. 6
      striker-ui/components/NetworkInitForm.tsx

@ -203,6 +203,7 @@ const GeneralInitForm = forwardRef<
setAdminPasswordInputMessage(undefined);
},
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -234,6 +235,7 @@ const GeneralInitForm = forwardRef<
setConfirmAdminPasswordInputMessage(undefined);
},
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -255,6 +257,7 @@ const GeneralInitForm = forwardRef<
setDomainNameInputMessage(undefined);
},
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -282,6 +285,7 @@ const GeneralInitForm = forwardRef<
setHostNameInputMessage(undefined);
},
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -309,6 +313,7 @@ const GeneralInitForm = forwardRef<
setHostNumberInputMessage(undefined);
},
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -326,6 +331,7 @@ const GeneralInitForm = forwardRef<
getValue: () =>
organizationNameInputRef.current.getValue?.call(null),
},
isRequired: true,
tests: [{ test: testNotBlank }],
},
[IT_IDS.organizationPrefix]: {
@ -338,6 +344,7 @@ const GeneralInitForm = forwardRef<
setOrganizationPrefixInputMessage(undefined);
},
},
isRequired: true,
tests: [
{
onFailure: ({ max, min }) => {

@ -888,6 +888,7 @@ const NetworkInitForm = forwardRef<
setDnsInputMessage();
},
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -908,6 +909,7 @@ const NetworkInitForm = forwardRef<
setGatewayInputMessage();
},
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -1020,6 +1022,7 @@ const NetworkInitForm = forwardRef<
setNetworkIfacesInputMessage();
},
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -1048,6 +1051,7 @@ const NetworkInitForm = forwardRef<
setNetworkIPAddressInputMessage();
},
},
isRequired: true,
tests: [
{
onFailure: () => {
@ -1068,6 +1072,7 @@ const NetworkInitForm = forwardRef<
};
tests[IT_IDS.networkName(inputTestPrefix)] = {
defaults: { value: name },
isRequired: true,
tests: [{ test: testNotBlank }],
};
tests[inputTestIDSubnetMask] = {
@ -1077,6 +1082,7 @@ const NetworkInitForm = forwardRef<
setNetworkSubnetMaskInputMessage();
},
},
isRequired: true,
tests: [
{
onFailure: () => {

Loading…
Cancel
Save