From 021bde48ef91d76c4da0806ca572645f006dd0b8 Mon Sep 17 00:00:00 2001 From: zhangke Date: Wed, 1 Feb 2023 14:41:38 +0800 Subject: [PATCH] fix: fix the error of compute service state Fix the error of compute service state on Platform Overview page Closes-Bug: #2004462 Change-Id: I6ae88611f4431da4e63ed1c65c37b5fd04568373 --- .../containers/AdminOverview/components/ComputeService.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/base/containers/AdminOverview/components/ComputeService.jsx b/src/pages/base/containers/AdminOverview/components/ComputeService.jsx index 84a218e4..f7e9e470 100644 --- a/src/pages/base/containers/AdminOverview/components/ComputeService.jsx +++ b/src/pages/base/containers/AdminOverview/components/ComputeService.jsx @@ -20,6 +20,7 @@ import { CheckCircleTwoTone, CloseCircleTwoTone, } from '@ant-design/icons/lib/icons'; +import { serviceState } from 'resources/nova/service'; import styles from '../style.less'; export class ComputeService extends Component { @@ -39,8 +40,8 @@ export class ComputeService extends Component { {item.host} - {item.status === 'enabled' ? t('Up') : t('Down')} - {item.status === 'enabled' ? ( + {serviceState[item.state]} + {item.state === 'up' ? (