luci-ap-filebrowser: more robust

This commit is contained in:
ElonH 2020-03-25 16:46:20 +08:00
parent 8dabab4509
commit 9b58d9f661
No known key found for this signature in database
GPG Key ID: 5BCDD7F78A258D4C

View File

@ -4,6 +4,7 @@ function index()
if not nixio.fs.access("/etc/config/filebrowser") then
return
end
entry({"admin", "nas"}, firstchild(), _("NAS") , 45).dependent = false
local page
page = entry({"admin", "nas", "filebrowser"}, cbi("filebrowser"), _("文件管理器"), 100)
page.dependent = true