fix: klippede tekster i Oversigt/Marker/Fabrikker/Siloer/Stalde — kort status i oversigten, fuld dvale-grund i Flows-listen (oversat), kortere opmærksomhedslinjer — 1.62.307
This commit is contained in:
@@ -66,12 +66,22 @@ function SmartPickupFrame:flowCells(adEnv, run)
|
||||
end
|
||||
-- kædeflow uden traktor: sig hvorfor det står stille i stedet for flowets regel
|
||||
if ADFlowView.isIdleChain(run) then status = i18n:getText("spu_flow_chainIdle") end
|
||||
-- [6] kort status til oversigtens smalle celle (132 px), [7] lang status med grund til Flows-listen (244 px)
|
||||
local longStatus = status
|
||||
if run.sleeping then
|
||||
local why = ADFlowSleep ~= nil and ADFlowSleep.getSleepReason ~= nil and ADFlowSleep.getSleepReason(run.id) or nil
|
||||
status = why ~= nil and string.format(i18n:getText("spu_flow_sleepingWhy"), ADFlowSleep.shortReason(why)) or i18n:getText("spu_flow_sleeping")
|
||||
-- (ikke "a and b or nil": det sluger false, som betyder "ingen tur uden nærmere grund" — review 17/10)
|
||||
local why = nil
|
||||
if ADFlowSleep ~= nil and ADFlowSleep.getSleepReason ~= nil then why = ADFlowSleep.getSleepReason(run.id) end
|
||||
status = i18n:getText("spu_flow_sleeping")
|
||||
if why == false then
|
||||
why = i18n:getText(run.kind == "outbound" and "spu_sleep_noTripOut" or "spu_sleep_noTripSupply")
|
||||
elseif why ~= nil then
|
||||
why = ADFlowSleep.shortReason(why)
|
||||
end
|
||||
longStatus = why ~= nil and string.format(i18n:getText("spu_flow_sleepingWhy"), why) or i18n:getText("spu_flow_sleepingLong")
|
||||
end
|
||||
local name = (run.id == self.selectedRunId and "> " or "") .. ADFlowView.listName(run)
|
||||
return {name, products, from, to, string.format("%d/%d", row.running, row.total), status}
|
||||
return {name, products, from, to, string.format("%d/%d", row.running, row.total), status, longStatus}
|
||||
end
|
||||
|
||||
-- Hele rækken klikbar med musen (Bitmap-rækker har ingen onClick). Klikket gemmes kun som
|
||||
|
||||
Reference in New Issue
Block a user