gluon-luci-admin: no logout button in configmode

Hide the "logout" button when in configmode.
This commit is contained in:
Nils Schneider 2014-01-21 23:06:32 +01:00
parent c71e3737a6
commit bc119007e9
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ function index()
page.index = true
entry({"admin", "index"}, form("admin/index"), _("Overview"), 1).ignoreindex = true
entry({"admin", "logout"}, call("action_logout"), _("Logout"))
if not configmode then
entry({"admin", "logout"}, call("action_logout"), _("Logout"))
end
end
function action_logout()