Merge pull request #2723 from ffgraz/warn-fix

gluon-web-model: resolve hang when submitting form with disabled element
This commit is contained in:
Jan-Niklas Burfeind 2022-12-14 02:55:55 +01:00 committed by GitHub
commit 85f3e40a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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 "

View File

@ -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 "

View File

@ -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')