fix(oversigt): kædeflows uden traktor foldet sammen, 'mangler traktor/vogn' som status (v1.61.12.0)

This commit is contained in:
2026-09-30 21:30:45 +02:00
parent 6b533e62eb
commit 991252848f
6 changed files with 32 additions and 8 deletions
+5
View File
@@ -83,6 +83,11 @@ function ADFlowView.shortVehicleName(name)
return short
end
-- Kædeflow uden traktor (venter på en ledig traktor/vogn).
function ADFlowView.isIdleChain(run)
return run.chain ~= nil and run.chain ~= "" and #(run.vehicleIds or {}) == 0
end
-- Kædeflows uden traktor foldes sammen i listen (de venter på en ledig traktor/vogn). -> active, idle
function ADFlowView.splitIdle(runs)
local active, idle = {}, {}