Wizard: Add services to Review step
This adds systemd services expandable to the Review step.
This commit is contained in:
parent
68d33130f7
commit
eeb70e38c3
3 changed files with 88 additions and 1 deletions
|
|
@ -77,6 +77,7 @@ import {
|
|||
selectKernel,
|
||||
selectUserAdministrator,
|
||||
selectFirewall,
|
||||
selectServices,
|
||||
} from '../../../../store/wizardSlice';
|
||||
import { toMonthAndYear, yyyyMMddFormat } from '../../../../Utilities/time';
|
||||
import {
|
||||
|
|
@ -980,6 +981,49 @@ export const FirewallList = () => {
|
|||
);
|
||||
};
|
||||
|
||||
export const ServicesList = () => {
|
||||
const services = useAppSelector(selectServices);
|
||||
|
||||
return (
|
||||
<TextContent>
|
||||
<TextList component={TextListVariants.dl}>
|
||||
<TextListItem
|
||||
component={TextListItemVariants.dt}
|
||||
className="pf-v5-u-min-width"
|
||||
>
|
||||
Disabled
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
{services.disabled.length > 0 || services.masked.length > 0 ? (
|
||||
<CodeBlock>
|
||||
<CodeBlockCode>
|
||||
{services.disabled.concat(services.masked).join(' ')}
|
||||
</CodeBlockCode>
|
||||
</CodeBlock>
|
||||
) : (
|
||||
'None'
|
||||
)}
|
||||
</TextListItem>
|
||||
<TextListItem
|
||||
component={TextListItemVariants.dt}
|
||||
className="pf-v5-u-min-width"
|
||||
>
|
||||
Enabled
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
{services.enabled.length > 0 ? (
|
||||
<CodeBlock>
|
||||
<CodeBlockCode>{services.enabled.join(' ')}</CodeBlockCode>
|
||||
</CodeBlock>
|
||||
) : (
|
||||
'None'
|
||||
)}
|
||||
</TextListItem>
|
||||
</TextList>
|
||||
</TextContent>
|
||||
);
|
||||
};
|
||||
|
||||
export const FirstBootList = () => {
|
||||
const isFirstbootEnabled = !!useAppSelector(selectFirstBootScript);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue