Wizard: Remove CodeBlocks for "None" as a value
Render "None" just as a plain text when there are no values to be shown in the review expandable.
This commit is contained in:
parent
16b3d60db1
commit
4ccf932c21
1 changed files with 32 additions and 24 deletions
|
|
@ -916,11 +916,13 @@ export const KernelList = () => {
|
||||||
Append
|
Append
|
||||||
</TextListItem>
|
</TextListItem>
|
||||||
<TextListItem component={TextListItemVariants.dd}>
|
<TextListItem component={TextListItemVariants.dd}>
|
||||||
<CodeBlock>
|
{kernel.append.length > 0 ? (
|
||||||
<CodeBlockCode>
|
<CodeBlock>
|
||||||
{kernel.append.length > 0 ? kernel.append.join(' ') : 'None'}
|
<CodeBlockCode>{kernel.append.join(' ')}</CodeBlockCode>
|
||||||
</CodeBlockCode>
|
</CodeBlock>
|
||||||
</CodeBlock>
|
) : (
|
||||||
|
'None'
|
||||||
|
)}
|
||||||
</TextListItem>
|
</TextListItem>
|
||||||
</TextList>
|
</TextList>
|
||||||
</TextContent>
|
</TextContent>
|
||||||
|
|
@ -940,11 +942,13 @@ export const FirewallList = () => {
|
||||||
Ports
|
Ports
|
||||||
</TextListItem>
|
</TextListItem>
|
||||||
<TextListItem component={TextListItemVariants.dd}>
|
<TextListItem component={TextListItemVariants.dd}>
|
||||||
<CodeBlock>
|
{firewall.ports.length > 0 ? (
|
||||||
<CodeBlockCode>
|
<CodeBlock>
|
||||||
{firewall.ports.length > 0 ? firewall.ports.join(' ') : 'None'}
|
<CodeBlockCode>{firewall.ports.join(' ')}</CodeBlockCode>
|
||||||
</CodeBlockCode>
|
</CodeBlock>
|
||||||
</CodeBlock>
|
) : (
|
||||||
|
'None'
|
||||||
|
)}
|
||||||
</TextListItem>
|
</TextListItem>
|
||||||
<TextListItem
|
<TextListItem
|
||||||
component={TextListItemVariants.dt}
|
component={TextListItemVariants.dt}
|
||||||
|
|
@ -953,13 +957,15 @@ export const FirewallList = () => {
|
||||||
Disabled services
|
Disabled services
|
||||||
</TextListItem>
|
</TextListItem>
|
||||||
<TextListItem component={TextListItemVariants.dd}>
|
<TextListItem component={TextListItemVariants.dd}>
|
||||||
<CodeBlock>
|
{firewall.services.disabled.length > 0 ? (
|
||||||
<CodeBlockCode>
|
<CodeBlock>
|
||||||
{firewall.services.disabled.length > 0
|
<CodeBlockCode>
|
||||||
? firewall.services.disabled.join(' ')
|
{firewall.services.disabled.join(' ')}
|
||||||
: 'None'}
|
</CodeBlockCode>
|
||||||
</CodeBlockCode>
|
</CodeBlock>
|
||||||
</CodeBlock>
|
) : (
|
||||||
|
'None'
|
||||||
|
)}
|
||||||
</TextListItem>
|
</TextListItem>
|
||||||
<TextListItem
|
<TextListItem
|
||||||
component={TextListItemVariants.dt}
|
component={TextListItemVariants.dt}
|
||||||
|
|
@ -968,13 +974,15 @@ export const FirewallList = () => {
|
||||||
Enabled services
|
Enabled services
|
||||||
</TextListItem>
|
</TextListItem>
|
||||||
<TextListItem component={TextListItemVariants.dd}>
|
<TextListItem component={TextListItemVariants.dd}>
|
||||||
<CodeBlock>
|
{firewall.services.enabled.length > 0 ? (
|
||||||
<CodeBlockCode>
|
<CodeBlock>
|
||||||
{firewall.services.enabled.length > 0
|
<CodeBlockCode>
|
||||||
? firewall.services.enabled.join(' ')
|
{firewall.services.enabled.join(' ')}
|
||||||
: 'None'}
|
</CodeBlockCode>
|
||||||
</CodeBlockCode>
|
</CodeBlock>
|
||||||
</CodeBlock>
|
) : (
|
||||||
|
'None'
|
||||||
|
)}
|
||||||
</TextListItem>
|
</TextListItem>
|
||||||
</TextList>
|
</TextList>
|
||||||
</TextContent>
|
</TextContent>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue