feat: add instance info

Add instance info for the openstack service monitor in the administrator

Change-Id: Iee60a49733514f52c5a1030eeec382d3e4beaf3b
This commit is contained in:
zhangjingwei 2024-05-09 12:09:49 +08:00
parent 5c129f2705
commit 3f4c8fdb95
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
features:
- |
Support instance info for the openstack service monitor in the administrator:
* Add the instance info below the host of the openstack services.

View File

@ -61,7 +61,10 @@ const Services = (props) => {
)}
</Col>
<Col className={styles.title} span={6}>
{it.hostname || it.host}
<div>{it.hostname || it.host}</div>
{it.instance && (
<div className={styles.instance}>{it.instance}</div>
)}
</Col>
<Col className={styles.status} span={6}>
<span>{t('Current Status')}</span>

View File

@ -15,6 +15,7 @@
.title {
display: flex;
flex-direction: column;
color: rgba(0, 0, 0, 65%);
font-weight: 400;
font-size: 16px;
@ -26,6 +27,11 @@
font-weight: 400;
font-size: 14px;
}
.instance {
color: rgba(0, 0, 0, 65%);
font-size: 12px;
}
}
}