Update 'luasrc/controller/filebrowser.lua'

main
ben 1 year ago
parent 0ffa1688cb
commit 55e6fc3dce

@ -2,14 +2,14 @@
module("luci.controller.filebrowser", package.seeall) module("luci.controller.filebrowser", package.seeall)
function index() function index()
entry({"admin", "apps"}, firstchild(), _("Apps") , 45).dependent = false entry({"admin", "nas"}, firstchild(), _("Nas") , 45).dependent = false
if not nixio.fs.access("/etc/config/filebrowser") then if not nixio.fs.access("/etc/config/filebrowser") then
return return
end end
local page = entry({"admin", "apps", "filebrowser"}, cbi("filebrowser"), _("Filebrowser")) local page = entry({"admin", "nas", "filebrowser"}, cbi("filebrowser"), _("Filebrowser"))
page.order = 10 page.order = 10
page.dependent = true page.dependent = true
page.acl_depends = { "luci-app-filebrowser" } page.acl_depends = { "luci-app-filebrowser" }
entry({"admin","apps","filebrowser","status"},call("act_status")).leaf=true entry({"admin","nas","filebrowser","status"},call("act_status")).leaf=true
end end

Loading…
Cancel
Save