Commit 78e676d1 authored by Kasalehlia's avatar Kasalehlia
Browse files

config-mode: fix contact info script

parent be8bfb01
Pipeline #2068 failed with stages
in 29 minutes and 52 seconds
return function(form, uci)
local pkg_i18n = i18n 'gluon-config-mode-contact-info'
local site_i18n = i18n 'gluon-site'
if uci.get("parker", "owner") == nil then
uci.set("parker", "owner", "owner")
local help = site_i18n._translate("gluon-config-mode:contact-help") or pkg_i18n.translate(
'Please provide your contact information here to allow others to contact '
......@@ -22,8 +18,9 @@ return function(form, uci)
o.datatype = 'minlength(1)'
o.optional = true
function o:write(data)
uci:set("parker", "owner", "contact", data)
return {'gluon-node-info'}
return {'parker'}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment