diff --git a/src/shared/versions.js b/src/shared/versions.js index 807808e..fcc137d 100644 --- a/src/shared/versions.js +++ b/src/shared/versions.js @@ -1,6 +1,6 @@ export const HARBOR_VERSIONS = Object.freeze({ - macClient: '0.8.4', - gatewayClient: '0.8.4', + macClient: '0.8.5', + gatewayClient: '0.8.5', gatewayBackend: '0.8.0', }); diff --git a/src/web/components/ServerPicker.jsx b/src/web/components/ServerPicker.jsx index b96123f..df1e5b2 100644 --- a/src/web/components/ServerPicker.jsx +++ b/src/web/components/ServerPicker.jsx @@ -39,19 +39,21 @@ function readAuto() { function serverHealthText(ping) { if (ping?.error) return 'Проверка недоступна'; - if (ping?.ok) return `TCP ${ping.latency} мс`; - return ping ? 'TCP недоступен' : 'Не проверен'; + if (ping?.ok) return `${ping.latency} мс`; + return ping ? 'Недоступен' : null; } function ServerHealth({ ping, fallback }) { const health = fallback || serverHealthText(ping); + if (!health && !ping?.checking) return null; + return - + ; } @@ -59,11 +61,11 @@ function ServerCheckButton({ checking, disabled, onClick }) { return