# HG changeset patch # User bsw # Date 1632737592 -7200 # Node ID f2922928b9a7610188abe6b6aa8e684ce82283fe # Parent 62b8c3e171121c62d87c494d312d30634c140e5f Allow to hide link to other units diff -r 62b8c3e17112 -r f2922928b9a7 app/main/index/_sidebar_whatcanido.lua --- a/app/main/index/_sidebar_whatcanido.lua Mon Sep 27 12:06:15 2021 +0200 +++ b/app/main/index/_sidebar_whatcanido.lua Mon Sep 27 12:13:12 2021 +0200 @@ -54,7 +54,7 @@ end } end } end - if not config.single_unit_id then + if not config.single_unit_id and not config.do_not_show_other_units_link then ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() ui.tag{ content = _"I want to take a look at other organizational units" } ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()