Skip to content
Snippets Groups Projects
Commit 78f5efa7 authored by Nils Schneider's avatar Nils Schneider
Browse files

gluon-luci-admin: no logout button in configmode

Hide the "logout" button when in configmode.
parent d85214d4
No related branches found
No related tags found
No related merge requests found
...@@ -41,8 +41,11 @@ function index() ...@@ -41,8 +41,11 @@ 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()
local dsp = require "luci.dispatcher" local dsp = require "luci.dispatcher"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment