From 5ff8d7165cb61f6a1b82da274af46a1667d8abf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Thu, 11 Jan 2018 20:35:26 +0000 Subject: [PATCH] feat(my-joy-beta): don't show names when no cns --- .../src/containers/create-instance/cns.js | 20 +++++++++++-------- .../containers/create-instance/networks.js | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/packages/my-joy-beta/src/containers/create-instance/cns.js b/packages/my-joy-beta/src/containers/create-instance/cns.js index b62ac833..c751f124 100644 --- a/packages/my-joy-beta/src/containers/create-instance/cns.js +++ b/packages/my-joy-beta/src/containers/create-instance/cns.js @@ -145,14 +145,18 @@ const CNSContainer = ({

{cnsEnabled ? 'CNS Enabled' : 'CNS Not Enabled'}

- Existing CNS service name(s) - - - {serviceNames.map((value, index) => ( - - ))} - - + {cnsEnabled ? ( + + Existing CNS service name(s) + + + {serviceNames.map((value, index) => ( + + ))} + + + + ) : null} diff --git a/packages/my-joy-beta/src/containers/create-instance/networks.js b/packages/my-joy-beta/src/containers/create-instance/networks.js index 9fd4eb9e..dcea73f9 100644 --- a/packages/my-joy-beta/src/containers/create-instance/networks.js +++ b/packages/my-joy-beta/src/containers/create-instance/networks.js @@ -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');