Merge pull request #2723 from ffgraz/warn-fix
gluon-web-model: resolve hang when submitting form with disabled element
This commit is contained in:
commit
85f3e40a14
@ -410,11 +410,11 @@ function TextValue:__init__(...)
|
||||
end
|
||||
|
||||
|
||||
local Element = class(Node)
|
||||
local Element = class(AbstractValue)
|
||||
M.Element = Element
|
||||
|
||||
function Element:__init__(template, kv, ...)
|
||||
Node.__init__(self, ...)
|
||||
AbstractValue.__init__(self, ...)
|
||||
|
||||
self.default = nil
|
||||
self.size = nil
|
||||
|
@ -49,6 +49,9 @@ msgstr ""
|
||||
msgid "WPA3"
|
||||
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 ""
|
||||
"Your node can additionally extend your private network by bridging the WAN "
|
||||
"interface with a separate WLAN. This feature is completely independent of "
|
||||
|
@ -40,6 +40,9 @@ msgstr ""
|
||||
msgid "WPA3"
|
||||
msgstr ""
|
||||
|
||||
msgid "Meshing on WAN interface is enabled. This can lead to problems."
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"Your node can additionally extend your private network by bridging the WAN "
|
||||
"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
|
||||
|
||||
local warning = s:element('model/warning', {
|
||||
content = mesh_on_wan and translate(
|
||||
'Meshing on WAN interface is enabled.' ..
|
||||
'Meshing on WAN interface is enabled. ' ..
|
||||
'This can lead to problems.'
|
||||
) or nil,
|
||||
}, 'warning')
|
||||
|
Loading…
Reference in New Issue
Block a user