Wizard: Hide Kernel step for WSL
This hides Kernel step for WSL targets only and adds an alert with info that the customization will not be added to the WSL images if more targets are selected.
This commit is contained in:
parent
eaead88a78
commit
6ae8b3e740
2 changed files with 14 additions and 1 deletions
|
|
@ -624,6 +624,7 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
|
|||
id="wizard-kernel"
|
||||
key="wizard-kernel"
|
||||
navItem={CustomStatusNavItem}
|
||||
isHidden={hasWslTargetOnly}
|
||||
status={kernelValidation.disabledNext ? 'error' : 'default'}
|
||||
footer={
|
||||
<CustomWizardFooter
|
||||
|
|
|
|||
|
|
@ -1,17 +1,29 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Content, Form, Title } from '@patternfly/react-core';
|
||||
import { Alert, Content, Form, Title } from '@patternfly/react-core';
|
||||
|
||||
import KernelArguments from './components/KernelArguments';
|
||||
import KernelName from './components/KernelName';
|
||||
|
||||
import { useAppSelector } from '../../../../store/hooks';
|
||||
import { selectImageTypes } from '../../../../store/wizardSlice';
|
||||
|
||||
const KernelStep = () => {
|
||||
const environments = useAppSelector(selectImageTypes);
|
||||
|
||||
return (
|
||||
<Form>
|
||||
<Title headingLevel="h1" size="xl">
|
||||
Kernel
|
||||
</Title>
|
||||
<Content>Customize kernel name and kernel arguments.</Content>
|
||||
{environments.includes('wsl') && (
|
||||
<Alert
|
||||
variant="warning"
|
||||
isInline
|
||||
title="Kernel customizations are not applied to Windows Subsystem for Linux images"
|
||||
/>
|
||||
)}
|
||||
<KernelName />
|
||||
<KernelArguments />
|
||||
</Form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue