gluon-luci-admin: no logout button in configmode
Hide the "logout" button when in configmode.
This commit is contained in:
parent
d85214d4c5
commit
78f5efa7ce
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user