feat(kæde): kæder slås selv til ([Kæde til]/[Fjern]); tomme kædeflows slettes; runsView med traktorer (v1.62.0.0)

This commit is contained in:
2026-09-30 21:43:30 +02:00
parent 37cf84c101
commit 88ddb3d6cd
10 changed files with 101 additions and 14 deletions
+9
View File
@@ -292,6 +292,15 @@ function ADChainRun.stopFlows(adEnv, chain, edges)
ADRunsController.updateRun(run.id, {chain = rootKey})
log("flow '%s' hører nu til kæden %s", tostring(run.name), tostring(rootKey))
changed = changed + 1
elseif ADChainActions.releaseAction(run) == "delete" then
local ok, err = pcall(ADRunsController.deleteRun, run.id, adEnv)
if ok then
ADChain.noVehicle[run.id] = nil
log("tomt kædeflow '%s' slettet: kæden %s er slået fra", tostring(run.name), tostring(run.chain))
changed = changed + 1
else
warn("flow '%s' kunne ikke slettes: %s", tostring(run.name), tostring(err))
end
else
local ok, err = pcall(ADRunsController.stopRun, adEnv, run.id)
if ok then