Skip to content
Snippets Groups Projects
Unverified Commit 85f3e40a authored by Jan-Niklas Burfeind's avatar Jan-Niklas Burfeind Committed by GitHub
Browse files

Merge pull request #2723 from ffgraz/warn-fix

gluon-web-model: resolve hang when submitting form with disabled element
parents d225befe a0db0a46
No related branches found
No related tags found
No related merge requests found
...@@ -410,11 +410,11 @@ function TextValue:__init__(...) ...@@ -410,11 +410,11 @@ function TextValue:__init__(...)
end end
local Element = class(Node) local Element = class(AbstractValue)
M.Element = Element M.Element = Element
function Element:__init__(template, kv, ...) function Element:__init__(template, kv, ...)
Node.__init__(self, ...) AbstractValue.__init__(self, ...)
self.default = nil self.default = nil
self.size = nil self.size = nil
......
...@@ -49,6 +49,9 @@ msgstr "" ...@@ -49,6 +49,9 @@ msgstr ""
msgid "WPA3" msgid "WPA3"
msgstr "" msgstr ""
msgid "Meshing on WAN interface is enabled. This can lead to problems."
msgstr "Mesh auf WAN ist aktiv. Dies kann zu Problemen führen."
msgid "" msgid ""
"Your node can additionally extend your private network by bridging the WAN " "Your node can additionally extend your private network by bridging the WAN "
"interface with a separate WLAN. This feature is completely independent of " "interface with a separate WLAN. This feature is completely independent of "
......
...@@ -40,6 +40,9 @@ msgstr "" ...@@ -40,6 +40,9 @@ msgstr ""
msgid "WPA3" msgid "WPA3"
msgstr "" msgstr ""
msgid "Meshing on WAN interface is enabled. This can lead to problems."
msgstr ""
msgid "" msgid ""
"Your node can additionally extend your private network by bridging the WAN " "Your node can additionally extend your private network by bridging the WAN "
"interface with a separate WLAN. This feature is completely independent of " "interface with a separate WLAN. This feature is completely independent of "
......
...@@ -28,7 +28,7 @@ enabled.default = uci:get('wireless', primary_iface) and not uci:get_bool('wirel ...@@ -28,7 +28,7 @@ enabled.default = uci:get('wireless', primary_iface) and not uci:get_bool('wirel
local warning = s:element('model/warning', { local warning = s:element('model/warning', {
content = mesh_on_wan and translate( content = mesh_on_wan and translate(
'Meshing on WAN interface is enabled.' .. 'Meshing on WAN interface is enabled. ' ..
'This can lead to problems.' 'This can lead to problems.'
) or nil, ) or nil,
}, 'warning') }, 'warning')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment