From be311a2b30745d4832aaeec074c76e341fcdc275 Mon Sep 17 00:00:00 2001 From: HotelSync Date: Fri, 27 Mar 2026 14:39:00 +0300 Subject: [PATCH] fix: download button always visible; KKT test shows DTO setup instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Download button shows even without latest release (grayed out state) - KKT test error "ДТО не запущен" now shows 3-step setup guide with atol.ru link Co-Authored-By: Claude Sonnet 4.6 --- src/pages/EquipmentPage.tsx | 44 +++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/src/pages/EquipmentPage.tsx b/src/pages/EquipmentPage.tsx index addda60..4eb58d4 100644 --- a/src/pages/EquipmentPage.tsx +++ b/src/pages/EquipmentPage.tsx @@ -685,16 +685,33 @@ function WorkstationCard({ - {testResults[device.id] !== undefined && testResults[device.id] !== null && ( -
- {testResults[device.id]!.ok ? : } - {testResults[device.id]!.msg || (testResults[device.id]!.ok ? 'Успешно' : 'Ошибка')} -
+ {testResults[device.id] !== undefined && testResults[device.id] !== null && (() => { + const res = testResults[device.id]! + const isDtoError = !res.ok && res.msg.includes('ДТО') + return ( +
+ + {res.ok ? : } + {res.msg || (res.ok ? 'Успешно' : 'Ошибка')} + + {isDtoError && ( +
+

Для работы кассы нужно установить и запустить АТОЛ ДТО 10:

+
    +
  1. Скачайте бесплатно с atol.ru → Поддержка → ДТО 10
  2. +
  3. Установите и запустите службу ATOL DTO Service
  4. +
  5. Порт по умолчанию: 16732
  6. +
+
+ )} +
+ ) + })()} )} )} @@ -818,7 +835,7 @@ export function EquipmentPage() { {updatingAll ? 'Отправка...' : 'Обновить все'} )} - {latestRelease && ( + {latestRelease ? ( Скачать агент v{latestRelease.version} + ) : ( + + + Агент недоступен + )}