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

View File

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