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
|
page.index = true
|
||||||
|
|
||||||
entry({"admin", "index"}, form("admin/index"), _("Overview"), 1).ignoreindex = true
|
entry({"admin", "index"}, form("admin/index"), _("Overview"), 1).ignoreindex = true
|
||||||
|
|
||||||
|
if not configmode then
|
||||||
entry({"admin", "logout"}, call("action_logout"), _("Logout"))
|
entry({"admin", "logout"}, call("action_logout"), _("Logout"))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function action_logout()
|
function action_logout()
|
||||||
|
Loading…
Reference in New Issue
Block a user