fixup! privatewifi use template method
This commit is contained in:
parent
dcb8efd90f
commit
810e94a647
@ -26,13 +26,12 @@ end
|
|||||||
local enabled = s:option(Flag, "enabled", translate("Enabled"))
|
local enabled = s:option(Flag, "enabled", translate("Enabled"))
|
||||||
enabled.default = uci:get('wireless', primary_iface) and not uci:get_bool('wireless', primary_iface, "disabled")
|
enabled.default = uci:get('wireless', primary_iface) and not uci:get_bool('wireless', primary_iface, "disabled")
|
||||||
|
|
||||||
|
local warning = s:template('model/warning')
|
||||||
if mesh_on_wan and enabled.data then
|
if mesh_on_wan and enabled.data then
|
||||||
local w = Warning()
|
w.content = translate(
|
||||||
w:setcontent(translate(
|
|
||||||
'Meshing on WAN interface is enabled.' ..
|
'Meshing on WAN interface is enabled.' ..
|
||||||
'This can lead to problems.'
|
'This can lead to problems.'
|
||||||
))
|
)
|
||||||
s:append(w)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local ssid = s:option(Value, "ssid", translate("Name (SSID)"))
|
local ssid = s:option(Value, "ssid", translate("Name (SSID)"))
|
||||||
|
Loading…
Reference in New Issue
Block a user