Merge pull request #1133 from fantom-x/luci-app-samba-browseable
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 30 Apr 2017 13:14:15 +0000 (16:14 +0300)
committerGitHub <noreply@github.com>
Sun, 30 Apr 2017 13:14:15 +0000 (16:14 +0300)
luci-app-samba: add "Browsable" checkbox to each share

1  2 
applications/luci-app-samba/luasrc/model/cbi/samba.lua

index 46259e73351a9adb6d7567df0267e321efdf194c,13abbc1a45f07c15f57eb8c7baafe9cbf8c43599..68a5b3a9bc371ae67cf1db9d2a1d990416a38ea4
@@@ -13,10 -13,9 +13,10 @@@ s:tab("template", translate("Edit Templ
  s:taboption("general", Value, "name", translate("Hostname"))
  s:taboption("general", Value, "description", translate("Description"))
  s:taboption("general", Value, "workgroup", translate("Workgroup"))
 -s:taboption("general", Value, "homes", translate("Share home-directories"),
 +h = s:taboption("general", Flag, "homes", translate("Share home-directories"),
          translate("Allow system users to reach their home directories via " ..
                  "network shares"))
 +h.rmempty = false
  
  tmpl = s:taboption("template", Value, "_tmpl",
        translate("Edit the template that is used for generating the samba configuration."), 
@@@ -54,6 -53,12 +54,12 @@@ ro.rmempty = fals
  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"