From ffe680939019a851919d8d92d666cd18e0916419 Mon Sep 17 00:00:00 2001 From: Alex Windett Date: Fri, 17 Mar 2017 11:04:10 +0000 Subject: [PATCH] hiding unmanaged instances fixes #371 --- frontend/src/containers/services/index.js | 4 ++-- frontend/src/containers/services/list.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/containers/services/index.js b/frontend/src/containers/services/index.js index 4fb01b14..f2027a40 100644 --- a/frontend/src/containers/services/index.js +++ b/frontend/src/containers/services/index.js @@ -24,7 +24,7 @@ const Services = (props) => { // TODO: Move into "components" and fix absolute // positioning on responsive screens - const instances = (instances = 1) => { + const instances = (instances = 0) => { const StyledButton = Styled(Button)` position: absolute; @@ -32,7 +32,7 @@ const Services = (props) => { right: 193px; `; - if ( instances.length <= 0 ) return; + if ( instances.length <= 0 || instances <= 0 ) return; return ( You have 5 instances diff --git a/frontend/src/containers/services/list.js b/frontend/src/containers/services/list.js index 89afc75b..98d8925c 100644 --- a/frontend/src/containers/services/list.js +++ b/frontend/src/containers/services/list.js @@ -55,7 +55,7 @@ class Services extends React.Component { }); }; - const instances = 5; + const instances = null; const serviceList = services.map((service) => (