chore: worker ip
This commit is contained in:
@@ -67,6 +67,7 @@ export interface ListItem {
|
||||
cluster_id: number;
|
||||
state_message: string;
|
||||
ssh_key_id: string;
|
||||
advertise_address: string;
|
||||
provision_progress: string;
|
||||
maintenance: {
|
||||
enabled: boolean;
|
||||
|
||||
@@ -279,9 +279,14 @@ const useWorkerColumns = ({
|
||||
{
|
||||
title: 'IP',
|
||||
dataIndex: 'ip',
|
||||
render: (text: string) => (
|
||||
render: (text: string, record) => (
|
||||
<AutoTooltip ghost maxWidth={240}>
|
||||
{text}
|
||||
{record.advertise_address || text}
|
||||
{record.advertise_address
|
||||
? ` (${intl.formatMessage({ id: 'clusters.table.ip.external' })})`
|
||||
: record.ip
|
||||
? ` (${intl.formatMessage({ id: 'clusters.table.ip.internal' })})`
|
||||
: ''}
|
||||
</AutoTooltip>
|
||||
)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user