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}>
|
<Margin bottom={4}>
|
||||||
<H3>{cnsEnabled ? 'CNS Enabled' : 'CNS Not Enabled'}</H3>
|
<H3>{cnsEnabled ? 'CNS Enabled' : 'CNS Not Enabled'}</H3>
|
||||||
</Margin>
|
</Margin>
|
||||||
<FormLabel>Existing CNS service name(s)</FormLabel>
|
{cnsEnabled ? (
|
||||||
<Margin top={0.5}>
|
<Fragment>
|
||||||
<TagList>
|
<FormLabel>Existing CNS service name(s)</FormLabel>
|
||||||
{serviceNames.map((value, index) => (
|
<Margin top={0.5}>
|
||||||
<Tag key={index} value={value} />
|
<TagList>
|
||||||
))}
|
{serviceNames.map((value, index) => (
|
||||||
</TagList>
|
<Tag key={index} value={value} />
|
||||||
</Margin>
|
))}
|
||||||
|
</TagList>
|
||||||
|
</Margin>
|
||||||
|
</Fragment>
|
||||||
|
) : null}
|
||||||
<Button type="button" onClick={handleEdit} secondary>
|
<Button type="button" onClick={handleEdit} secondary>
|
||||||
Edit
|
Edit
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -130,7 +130,7 @@ export default compose(
|
|||||||
set({ name: 'create-instance-networks-proceeded', value: true })
|
set({ name: 'create-instance-networks-proceeded', value: true })
|
||||||
);
|
);
|
||||||
|
|
||||||
return history.push('/instances/~create/firewall');
|
return history.push('/instances/~create/cns');
|
||||||
},
|
},
|
||||||
handleEdit: () => {
|
handleEdit: () => {
|
||||||
return history.push('/instances/~create/networks');
|
return history.push('/instances/~create/networks');
|
||||||
|
Loading…
Reference in New Issue
Block a user