Wizard: Add validation to ChippingInput

This adds step validation to ChippingInput, allowing to validate imported values.
This commit is contained in:
regexowl 2025-02-04 10:39:33 +01:00 committed by Klara Simickova
parent 6ec433f9d3
commit f11ab64262
8 changed files with 160 additions and 10 deletions

View file

@ -12,11 +12,14 @@ import {
selectKernel,
} from '../../../../../store/wizardSlice';
import ChippingInput from '../../../ChippingInput';
import { useKernelValidation } from '../../../utilities/useValidation';
import { isKernelArgumentValid } from '../../../validators';
const KernelArguments = () => {
const kernelAppend = useAppSelector(selectKernel).append;
const stepValidation = useKernelValidation();
const release = useAppSelector(selectDistribution);
const complianceProfileID = useAppSelector(selectComplianceProfileID);
@ -46,6 +49,8 @@ const KernelArguments = () => {
item="Kernel argument"
addAction={addKernelArg}
removeAction={removeKernelArg}
stepValidation={stepValidation}
fieldName="kernelAppend"
/>
</FormGroup>
);