From 29e067903854e8c63966ad2110aafce8ae069bdd Mon Sep 17 00:00:00 2001 From: shats Date: Thu, 22 Jan 2026 15:40:39 +0700 Subject: [PATCH] refactor(NetworkConfigManager): update server DNS display logic for improved clarity; localize indicator type for better user understanding --- frontend/src/NetworkConfigManager.jsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/NetworkConfigManager.jsx b/frontend/src/NetworkConfigManager.jsx index 1e55647..cf2e911 100644 --- a/frontend/src/NetworkConfigManager.jsx +++ b/frontend/src/NetworkConfigManager.jsx @@ -898,7 +898,14 @@ function NetworkConfigManager() {
- {server?.dns || serverId} + + {server?.dns ? server.dns.split('.')[0] : (server?.name || serverId)} + + {server?.dns && ( + + {server.dns} + + )} {server && ( {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;