feat(my-joy-beta): don't show names when no cns

This commit is contained in:
Sérgio Ramos 2018-01-11 20:35:26 +00:00
parent ffb3215611
commit 5ff8d7165c
2 changed files with 13 additions and 9 deletions

View File

@ -145,6 +145,8 @@ const CNSContainer = ({
<Margin bottom={4}>
<H3>{cnsEnabled ? 'CNS Enabled' : 'CNS Not Enabled'}</H3>
</Margin>
{cnsEnabled ? (
<Fragment>
<FormLabel>Existing CNS service name(s)</FormLabel>
<Margin top={0.5}>
<TagList>
@ -153,6 +155,8 @@ const CNSContainer = ({
))}
</TagList>
</Margin>
</Fragment>
) : null}
<Button type="button" onClick={handleEdit} secondary>
Edit
</Button>

View File

@ -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');