CreateImageWizard: Don't show centos on non-beta

The distinction is made by checking if the distribution contained
'rhel'. This is the same way the review page determins if it should show
a registration tab.
This commit is contained in:
Sanne Raymaekers 2022-04-22 13:33:34 +02:00
parent 94c0dbbf3f
commit 4da829ff8f
6 changed files with 100 additions and 19 deletions

View file

@ -14,6 +14,7 @@ import ActivationKeys from './formComponents/ActivationKeys';
import Select from '@data-driven-forms/pf4-component-mapper/select';
import FileSystemConfiguration from './formComponents/FileSystemConfiguration';
import FileSystemConfigToggle from './formComponents/FileSystemConfigToggle';
import ImageOutputReleaseSelect from './formComponents/ImageOutputReleaseSelect';
const ImageCreator = ({ schema, onSubmit, onClose, customComponentMapper, customValidatorMapper, defaultArch, className, ...props }) => {
return schema ? <FormRenderer
@ -39,6 +40,7 @@ const ImageCreator = ({ schema, onSubmit, onClose, customComponentMapper, custom
'activation-keys': ActivationKeys,
'file-system-config-toggle': FileSystemConfigToggle,
'file-system-configuration': FileSystemConfiguration,
'image-output-release-select': ImageOutputReleaseSelect,
...customComponentMapper,
} }
onCancel={ onClose }