liquid_feedback_frontend
diff app/main/index/_head.lua @ 1696:446d2798f424
Automatically switch to single unit mode for users having only one unit
author | bsw |
---|---|
date | Thu Sep 23 17:47:58 2021 +0200 (2021-09-23) |
parents | 22398d337507 |
children | f7c42bcf1490 |
line diff
1.1 --- a/app/main/index/_head.lua Thu Sep 23 14:30:18 2021 +0200 1.2 +++ b/app/main/index/_head.lua Thu Sep 23 17:47:58 2021 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -local unit_id = config.single_unit_id or request.get_param{ name = "unit" } 1.5 +local unit_id = app.single_unit_id or request.get_param{ name = "unit" } 1.6 local area_id = config.single_area_id or request.get_param{ name = "area" } 1.7 1.8 local initiative = param.get("initiative", "table")