refactor(NetworkConfigManager): update server DNS display logic for improved clarity; localize indicator type for better user understanding
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m36s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m36s
This commit is contained in:
@@ -898,7 +898,14 @@ function NetworkConfigManager() {
|
||||
<IconServer size={16} className="text-primary" />
|
||||
</span>
|
||||
<div>
|
||||
<span className="fw-medium">{server?.dns || serverId}</span>
|
||||
<span className="fw-medium">
|
||||
{server?.dns ? server.dns.split('.')[0] : (server?.name || serverId)}
|
||||
</span>
|
||||
{server?.dns && (
|
||||
<span className="text-muted ms-2 small">
|
||||
{server.dns}
|
||||
</span>
|
||||
)}
|
||||
{server && (
|
||||
<span className="text-muted ms-2 small">
|
||||
{server.ip}
|
||||
@@ -982,7 +989,7 @@ function NetworkConfigManager() {
|
||||
const firstParent = parentGatewaysList.length > 0 ? getParentGateway(parentGatewaysList[0].id) : null;
|
||||
|
||||
// Определяем тип индикатора (как в ServerCard)
|
||||
const indicatorType = gateway.type === 'recursive' ? 'EXIT' : 'JUMP';
|
||||
const indicatorType = gateway.type === 'recursive' ? 'Рекурсивный' : 'Прямой';
|
||||
const indicatorColor = gateway.type === 'recursive' ? 'red' : 'blue';
|
||||
const IndicatorIcon = gateway.type === 'recursive' ? IconArrowsRightLeft : IconRouter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user