From 5d7c10ca4d7c8d44cc82fd67ffc9ffea56ae056b Mon Sep 17 00:00:00 2001 From: nguyentrungthat <80239428+nguentrungthat@users.noreply.github.com> Date: Fri, 5 Dec 2025 07:59:13 +0700 Subject: [PATCH] Update --- BACKEND/app/services/station_connection.ts | 2 +- BACKEND/providers/socket_io_provider.ts | 2 +- FRONTEND/src/components/BottomToolBar.tsx | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/BACKEND/app/services/station_connection.ts b/BACKEND/app/services/station_connection.ts index 5c9da26..6c179f2 100644 --- a/BACKEND/app/services/station_connection.ts +++ b/BACKEND/app/services/station_connection.ts @@ -42,7 +42,7 @@ export default class StationConnection { if (message.includes('--More--')) this.writeCommand(' ') this.config.output += cleanData(message) this.config.output = this.config.output.slice(-5000) - // appendLog(cleanData(message), this.config.id, this.config.name, this.config.ip, 0) + appendLog(cleanData(message), this.config.id, this.config.name, this.config.ip, 0) }) this.client.on('error', (err) => { diff --git a/BACKEND/providers/socket_io_provider.ts b/BACKEND/providers/socket_io_provider.ts index 44e960e..d64e8b3 100644 --- a/BACKEND/providers/socket_io_provider.ts +++ b/BACKEND/providers/socket_io_provider.ts @@ -809,7 +809,7 @@ export class WebSocketIo { console.log('[ERROR connect station] Not found!') return } - + console.log('Clearing line', clearLine, 'on station', station.name) await this.handleStationOperation(stationId, async (stationCon) => { stationCon.writeCommand(`\r\nclear line ${clearLine}\r\n`) await sleep(500) diff --git a/FRONTEND/src/components/BottomToolBar.tsx b/FRONTEND/src/components/BottomToolBar.tsx index 8d7327d..b277106 100644 --- a/FRONTEND/src/components/BottomToolBar.tsx +++ b/FRONTEND/src/components/BottomToolBar.tsx @@ -776,8 +776,9 @@ const BottomToolBar = ({ isDisable={isDisable || selectedLines.length === 0} onClick={() => { if ( - selectedLines.length > 0 && - selectedLines.length === station?.lines?.length + selectedLines.length > 0 + // && + // selectedLines.length === station?.lines?.length ) { socket?.emit("run_all_dpelp", { lineIds: selectedLines.map((line) => line.id),