fix: hide reconnect button when agent is online; add printer encoding/paper_width settings

- WorkstationCard: show RefreshCw reconnect only when agentId set but offline
- DeviceForm: add encoding (utf8/cp866) and paper_width fields for network printers
- Backend: pass device.config in test_device command to agent

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-29 10:31:17 +03:00
parent 11300bccbf
commit a443ec9d28
2 changed files with 54 additions and 20 deletions

View File

@@ -322,6 +322,7 @@ const workstationRoutes: FastifyPluginAsync = async (fastify) => {
dto_user: device.config?.dto_user,
dto_pass: device.config?.dto_pass,
dto_device_id: device.config?.dto_device_id,
config: device.config,
},
}) as { ok: boolean; error?: string; message?: string }
return result