From c6bc614f2af677b0382ed93c7a7b60abcff54199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 12 Apr 2022 17:53:34 +0200 Subject: [PATCH] Web: add commented-out debug code The code ensures the jobs table gets filled with partial jobs (as from a WebSocket JobUpdate object), helping to test such updates. --- web/app/src/components/JobsTable.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/app/src/components/JobsTable.vue b/web/app/src/components/JobsTable.vue index 5cb4a643..2c66562c 100644 --- a/web/app/src/components/JobsTable.vue +++ b/web/app/src/components/JobsTable.vue @@ -74,6 +74,8 @@ export default { }); }, onJobsFetched(data) { + // "Down-cast" to JobUpdate to only get those fields, just for debugging things. + // data.jobs = data.jobs.map((j) => API.JobUpdate.constructFromObject(j)); this.tabulator.setData(data.jobs); this.restoreRowSelection(); },