luci-ap-filebrowser: more robust

This commit is contained in:
ElonH 2020-03-25 16:46:20 +08:00
parent a9eb46d7a5
commit baffc0df9a
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