feat(my-joy-beta): don't show names when no cns
This commit is contained in:
parent
ffb3215611
commit
5ff8d7165c
@ -145,14 +145,18 @@ const CNSContainer = ({
|
||||
<Margin bottom={4}>
|
||||
<H3>{cnsEnabled ? 'CNS Enabled' : 'CNS Not Enabled'}</H3>
|
||||
</Margin>
|
||||
<FormLabel>Existing CNS service name(s)</FormLabel>
|
||||
<Margin top={0.5}>
|
||||
<TagList>
|
||||
{serviceNames.map((value, index) => (
|
||||
<Tag key={index} value={value} />
|
||||
))}
|
||||
</TagList>
|
||||
</Margin>
|
||||
{cnsEnabled ? (
|
||||
<Fragment>
|
||||
<FormLabel>Existing CNS service name(s)</FormLabel>
|
||||
<Margin top={0.5}>
|
||||
<TagList>
|
||||
{serviceNames.map((value, index) => (
|
||||
<Tag key={index} value={value} />
|
||||
))}
|
||||
</TagList>
|
||||
</Margin>
|
||||
</Fragment>
|
||||
) : null}
|
||||
<Button type="button" onClick={handleEdit} secondary>
|
||||
Edit
|
||||
</Button>
|
||||
|
@ -130,7 +130,7 @@ export default compose(
|
||||
set({ name: 'create-instance-networks-proceeded', value: true })
|
||||
);
|
||||
|
||||
return history.push('/instances/~create/firewall');
|
||||
return history.push('/instances/~create/cns');
|
||||
},
|
||||
handleEdit: () => {
|
||||
return history.push('/instances/~create/networks');
|
||||
|
Loading…
Reference in New Issue
Block a user