Wizard: Add firewall to Review step
This adds a firewall expandable to the Review step.
This commit is contained in:
parent
7d2ca8f1ee
commit
d7a331b6a4
3 changed files with 101 additions and 3 deletions
|
|
@ -76,6 +76,7 @@ import {
|
|||
selectUserSshKeyByIndex,
|
||||
selectKernel,
|
||||
selectUserAdministrator,
|
||||
selectFirewall,
|
||||
} from '../../../../store/wizardSlice';
|
||||
import { toMonthAndYear, yyyyMMddFormat } from '../../../../Utilities/time';
|
||||
import {
|
||||
|
|
@ -925,6 +926,60 @@ export const KernelList = () => {
|
|||
);
|
||||
};
|
||||
|
||||
export const FirewallList = () => {
|
||||
const firewall = useAppSelector(selectFirewall);
|
||||
|
||||
return (
|
||||
<TextContent>
|
||||
<TextList component={TextListVariants.dl}>
|
||||
<TextListItem
|
||||
component={TextListItemVariants.dt}
|
||||
className="pf-v5-u-min-width"
|
||||
>
|
||||
Ports
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
<CodeBlock>
|
||||
<CodeBlockCode>
|
||||
{firewall.ports.length > 0 ? firewall.ports.join(' ') : 'None'}
|
||||
</CodeBlockCode>
|
||||
</CodeBlock>
|
||||
</TextListItem>
|
||||
<TextListItem
|
||||
component={TextListItemVariants.dt}
|
||||
className="pf-v5-u-min-width"
|
||||
>
|
||||
Disabled services
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
<CodeBlock>
|
||||
<CodeBlockCode>
|
||||
{firewall.services.disabled.length > 0
|
||||
? firewall.services.disabled.join(' ')
|
||||
: 'None'}
|
||||
</CodeBlockCode>
|
||||
</CodeBlock>
|
||||
</TextListItem>
|
||||
<TextListItem
|
||||
component={TextListItemVariants.dt}
|
||||
className="pf-v5-u-min-width"
|
||||
>
|
||||
Enabled services
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
<CodeBlock>
|
||||
<CodeBlockCode>
|
||||
{firewall.services.enabled.length > 0
|
||||
? firewall.services.enabled.join(' ')
|
||||
: 'None'}
|
||||
</CodeBlockCode>
|
||||
</CodeBlock>
|
||||
</TextListItem>
|
||||
</TextList>
|
||||
</TextContent>
|
||||
);
|
||||
};
|
||||
|
||||
export const FirstBootList = () => {
|
||||
const isFirstbootEnabled = !!useAppSelector(selectFirstBootScript);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue