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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user