From e31b6e9379b944f8e09f87dc8a55360ca24f3080 Mon Sep 17 00:00:00 2001 From: fantom-x Date: Sat, 29 Apr 2017 19:47:12 -0400 Subject: luci-app-samba: use flag for "Share home-directories" option "Share home-directories" has only two values 0 and 1. There is no need for it to be a text box Signed-off-by: Marc Benoit marcb6218@gmail.com --- applications/luci-app-samba/luasrc/model/cbi/samba.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-samba/luasrc') diff --git a/applications/luci-app-samba/luasrc/model/cbi/samba.lua b/applications/luci-app-samba/luasrc/model/cbi/samba.lua index 721191a7ee..46259e7335 100644 --- a/applications/luci-app-samba/luasrc/model/cbi/samba.lua +++ b/applications/luci-app-samba/luasrc/model/cbi/samba.lua @@ -13,9 +13,10 @@ s:tab("template", translate("Edit Template")) 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."), -- cgit v1.2.3