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
This commit is contained in:
parent
fbc8fde808
commit
021bde48ef
@ -20,6 +20,7 @@ import {
|
|||||||
CheckCircleTwoTone,
|
CheckCircleTwoTone,
|
||||||
CloseCircleTwoTone,
|
CloseCircleTwoTone,
|
||||||
} from '@ant-design/icons/lib/icons';
|
} from '@ant-design/icons/lib/icons';
|
||||||
|
import { serviceState } from 'resources/nova/service';
|
||||||
import styles from '../style.less';
|
import styles from '../style.less';
|
||||||
|
|
||||||
export class ComputeService extends Component {
|
export class ComputeService extends Component {
|
||||||
@ -39,8 +40,8 @@ export class ComputeService extends Component {
|
|||||||
{item.host}
|
{item.host}
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={8} style={{ textAlign: 'center' }}>
|
<Col span={8} style={{ textAlign: 'center' }}>
|
||||||
<span>{item.status === 'enabled' ? t('Up') : t('Down')}</span>
|
<span>{serviceState[item.state]}</span>
|
||||||
{item.status === 'enabled' ? (
|
{item.state === 'up' ? (
|
||||||
<CheckCircleTwoTone
|
<CheckCircleTwoTone
|
||||||
style={{ marginLeft: 12 }}
|
style={{ marginLeft: 12 }}
|
||||||
twoToneColor="#52c41a"
|
twoToneColor="#52c41a"
|
||||||
|
Loading…
Reference in New Issue
Block a user