|
|
@ -48,6 +48,7 @@ const StrikerInitForm: FC = () => { |
|
|
|
const [isNetworkInitFormValid, setIsNetworkInitFormValid] = |
|
|
|
const [isNetworkInitFormValid, setIsNetworkInitFormValid] = |
|
|
|
useState<boolean>(false); |
|
|
|
useState<boolean>(false); |
|
|
|
const [isSubmittingForm, setIsSubmittingForm] = useState<boolean>(false); |
|
|
|
const [isSubmittingForm, setIsSubmittingForm] = useState<boolean>(false); |
|
|
|
|
|
|
|
const [hostNumber, setHostNumber] = useState<string | undefined>(); |
|
|
|
|
|
|
|
|
|
|
|
const [hostDetail, setHostDetail] = useProtectedState< |
|
|
|
const [hostDetail, setHostDetail] = useProtectedState< |
|
|
|
APIHostDetail | undefined |
|
|
|
APIHostDetail | undefined |
|
|
@ -147,6 +148,9 @@ const StrikerInitForm: FC = () => { |
|
|
|
<GeneralInitForm |
|
|
|
<GeneralInitForm |
|
|
|
expectHostDetail={reconfig} |
|
|
|
expectHostDetail={reconfig} |
|
|
|
hostDetail={hostDetail} |
|
|
|
hostDetail={hostDetail} |
|
|
|
|
|
|
|
onHostNumberBlurAppend={({ target: { value } }) => { |
|
|
|
|
|
|
|
setHostNumber(value); |
|
|
|
|
|
|
|
}} |
|
|
|
ref={generalInitFormRef} |
|
|
|
ref={generalInitFormRef} |
|
|
|
toggleSubmitDisabled={(testResult) => { |
|
|
|
toggleSubmitDisabled={(testResult) => { |
|
|
|
if (testResult !== isGeneralInitFormValid) { |
|
|
|
if (testResult !== isGeneralInitFormValid) { |
|
|
@ -158,6 +162,7 @@ const StrikerInitForm: FC = () => { |
|
|
|
<NetworkInitForm |
|
|
|
<NetworkInitForm |
|
|
|
expectHostDetail={reconfig} |
|
|
|
expectHostDetail={reconfig} |
|
|
|
hostDetail={hostDetail} |
|
|
|
hostDetail={hostDetail} |
|
|
|
|
|
|
|
hostSequence={hostNumber} |
|
|
|
ref={networkInitFormRef} |
|
|
|
ref={networkInitFormRef} |
|
|
|
toggleSubmitDisabled={(testResult) => { |
|
|
|
toggleSubmitDisabled={(testResult) => { |
|
|
|
if (testResult !== isNetworkInitFormValid) { |
|
|
|
if (testResult !== isNetworkInitFormValid) { |
|
|
|