Add Node Type to Instances page and modify "Type" to "Policy Type."

This commit is contained in:
Kia Lam 2021-08-02 12:27:12 -04:00
parent dbb5715fea
commit 2474f60e00
2 changed files with 4 additions and 2 deletions

View File

@ -204,7 +204,8 @@ function InstanceList() {
headerRow={
<HeaderRow qsConfig={QS_CONFIG}>
<HeaderCell sortKey="name">{t`Name`}</HeaderCell>
<HeaderCell>{t`Type`}</HeaderCell>
<HeaderCell>{t`Node Type`}</HeaderCell>
<HeaderCell>{t`Policy Type`}</HeaderCell>
<HeaderCell>{t`Running Jobs`}</HeaderCell>
<HeaderCell>{t`Total Jobs`}</HeaderCell>
<HeaderCell>{t`Capacity Adjustment`}</HeaderCell>

View File

@ -115,7 +115,8 @@ function InstanceListItem({
<Td id={labelId} dataLabel={t`Name`}>
{instance.hostname}
</Td>
<Td dataLabel={t`Type`}>
<Td dataLabel={t`Node Type`}>{instance.node_type}</Td>
<Td dataLabel={t`Policy Type`}>
{instance.managed_by_policy ? t`Auto` : t`Manual`}
</Td>
<Td dataLabel={t`Running Jobs`}>{instance.jobs_running}</Td>