Skip to content

Commit 4df2843

Browse files
author
Claudio Mezzasalma
committed
luci-app-openvpn: Add translation for OpenVPN config name option
Fix "Name" column not showing in configurations table. Following comments at openwrt/openwrt#21746 (comment) Fixes openwrt/openwrt#21746 Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@gmail.com>
1 parent 9294520 commit 4df2843

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • applications/luci-app-openvpn/luasrc/model/cbi

applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ s.template_addremove = "openvpn/cbi-select-input-add"
1414
s.addremove = true
1515
s.add_select_options = { }
1616

17-
local cfg = s:option(DummyValue, "config")
17+
local cfg = s:option(DummyValue, "config", translate("Name"))
1818
function cfg.cfgvalue(self, section)
1919
local file_cfg = self.map:get(section, "config")
2020
if file_cfg then
2121
s.extedit = luci.dispatcher.build_url("admin", "vpn", "openvpn", "file", "%s")
2222
else
2323
s.extedit = luci.dispatcher.build_url("admin", "vpn", "openvpn", "basic", "%s")
2424
end
25+
return section or "-"
2526
end
2627

2728
uci:load("openvpn_recipes")

0 commit comments

Comments
 (0)