liquid_feedback_frontend

changeset 1706:2558d9c15c44

Show top MOTD only when no unit or area is selected
author bsw
date Mon Sep 27 11:03:28 2021 +0200 (2021-09-27)
parents 0cfa0d088aa0
children 7c91c52de1fb
files app/main/index/index.lua
line diff
     1.1 --- a/app/main/index/index.lua	Mon Sep 27 11:01:56 2021 +0200
     1.2 +++ b/app/main/index/index.lua	Mon Sep 27 11:03:28 2021 +0200
     1.3 @@ -45,8 +45,9 @@
     1.4    ui.cell_main{ content = function()
     1.5  
     1.6      execute.view{ module = "index", view = "_sidebar_motd_public" }
     1.7 -
     1.8 -    execute.view{ module = "index", view = "_sidebar_motd_intern_top" }
     1.9 +    if not unit_id and not area_id then
    1.10 +      execute.view{ module = "index", view = "_sidebar_motd_intern_top" }
    1.11 +    end
    1.12  
    1.13      execute.view{ module = "issue", view = "_list" }
    1.14    end }

Impressum / About Us