From f5b98e8e2a203ef88caee2fd0db0ee1ffc81fc30 Mon Sep 17 00:00:00 2001 From: Steve Garon Date: Wed, 28 Apr 2021 14:51:41 +0000 Subject: [PATCH] Don't show red card when min service instance is 0 --- src/components/routes/dashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/routes/dashboard.tsx b/src/components/routes/dashboard.tsx index 9a563465f..864d50105 100644 --- a/src/components/routes/dashboard.tsx +++ b/src/components/routes/dashboard.tsx @@ -749,7 +749,7 @@ const WrappedServiceCard = ({ service, max_inflight }) => { const classes = useStyles(); useEffect(() => { - if (service.total !== 0 && service.instances === 0) { + if (service.scaler.target !== 0 && service.instances === 0) { setError(t('service.error.none')); } else if (service.metrics.fail_nonrecoverable > 0) { setError(t('service.error.fail_nonrecoverable')); @@ -773,7 +773,7 @@ const WrappedServiceCard = ({ service, max_inflight }) => { )}
- {`${service.service_name} :: ${service.instances} / ${service.scaler.target || '-'}`} + {`${service.service_name} :: ${service.instances} / ${service.scaler.target}`}