liquid_feedback_frontend
changeset 1720:a63c2dacf619
If only one policy is available, choose it automatically
author | bsw |
---|---|
date | Mon Sep 27 13:09:30 2021 +0200 (2021-09-27) |
parents | 9b8dc1828f1f |
children | 89f524f1d185 |
files | app/main/draft/new.lua |
line diff
1.1 --- a/app/main/draft/new.lua Mon Sep 27 13:07:56 2021 +0200 1.2 +++ b/app/main/draft/new.lua Mon Sep 27 13:09:30 2021 +0200 1.3 @@ -128,7 +128,7 @@ 1.4 -- -------- PREVIEW 1.5 if param.get("preview") and slot.get_content("error") == "" then 1.6 ui.sectionRow( function() 1.7 - if not issue and not initiative then 1.8 + if not issue and not initiative and #area.allowed_policies > 1 then 1.9 ui.container { content = policy and policy.name or "" } 1.10 end 1.11 if param.get("free_timing") then