luci-app-samba: add "Browsable" checkbox to the "Network Shares" page for each share 1133/head
authorfantom-x <fantom-x@users.noreply.github.com>
Sat, 29 Apr 2017 20:53:08 +0000 (16:53 -0400)
committerfantom-x <fantom-x@users.noreply.github.com>
Sat, 29 Apr 2017 20:53:08 +0000 (16:53 -0400)
Signed-off-by: Marc Benoit marcb6218@gmail.com
applications/luci-app-samba/luasrc/model/cbi/samba.lua

index 721191a7eed2f4c35434c8e686b81abef9f8c18e..13abbc1a45f07c15f57eb8c7baafe9cbf8c43599 100644 (file)
@@ -53,6 +53,12 @@ ro.rmempty = false
 ro.enabled = "yes"
 ro.disabled = "no"
 
+br = s:option(Flag, "browseable", translate("Browseable"))
+br.rmempty = false
+br.default = "yes"
+br.enabled = "yes"
+br.disabled = "no"
+
 go = s:option(Flag, "guest_ok", translate("Allow guests"))
 go.rmempty = false
 go.enabled = "yes"