config-mode-manman-sync: allow setting node
This commit is contained in:
parent
1fcf25dbb4
commit
db58670a14
@ -18,6 +18,9 @@ msgstr "ManMan synchronisierung aktivieren"
|
||||
msgid "ManMan location ID"
|
||||
msgstr "ManMan Standort-ID"
|
||||
|
||||
msgid "ManMan node (optional)"
|
||||
msgstr "ManMan Knoten (optional)"
|
||||
|
||||
msgid ""
|
||||
"Sync configuration from ManMan by entering ManMan location id here.\n"
|
||||
"This will automatically keep name, location and ips in sync with the values "
|
||||
|
@ -7,6 +7,9 @@ msgstr ""
|
||||
msgid "ManMan location ID"
|
||||
msgstr ""
|
||||
|
||||
msgid "ManMan node (optional)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"Sync configuration from ManMan "
|
||||
"by entering ManMan location id here.\n"
|
||||
|
@ -26,6 +26,14 @@ return function(form, uci)
|
||||
uci:set('gluon-manman-sync', 'sync', 'location_id', data)
|
||||
end
|
||||
|
||||
local id = s:option(Value, 'manman_id', pkg_i18n.translate('ManMan node (optional)'))
|
||||
id:depends(manman, true)
|
||||
id.default = uci:get('gluon-manman-sync', 'sync', 'node')
|
||||
id.datatype = 'maxlength(16)'
|
||||
function id:write(data)
|
||||
uci:set('gluon-manman-sync', 'sync', 'node', data)
|
||||
end
|
||||
|
||||
function s:write()
|
||||
uci:save('gluon-manman-sync')
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user